Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern ttyread_filtops, ttywrite_filtops, ptcread_filtops,...



details:   https://anonhg.NetBSD.org/src/rev/bc45be7f897b
branches:  trunk
changeset: 987496:bc45be7f897b
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Wed Sep 29 13:14:39 2021 +0000

description:
ttyread_filtops, ttywrite_filtops, ptcread_filtops, and ptcwrite_filtops
are MPSAFE.

diffstat:

 sys/kern/tty.c     |  8 ++++----
 sys/kern/tty_pty.c |  8 ++++----
 2 files changed, 8 insertions(+), 8 deletions(-)

diffs (70 lines):

diff -r 57e3071c4717 -r bc45be7f897b sys/kern/tty.c
--- a/sys/kern/tty.c    Wed Sep 29 02:47:22 2021 +0000
+++ b/sys/kern/tty.c    Wed Sep 29 13:14:39 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tty.c,v 1.297 2021/09/27 00:40:49 thorpej Exp $        */
+/*     $NetBSD: tty.c,v 1.298 2021/09/29 13:14:39 thorpej Exp $        */
 
 /*-
  * Copyright (c) 2008, 2020 The NetBSD Foundation, Inc.
@@ -63,7 +63,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tty.c,v 1.297 2021/09/27 00:40:49 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tty.c,v 1.298 2021/09/29 13:14:39 thorpej Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_compat_netbsd.h"
@@ -1517,14 +1517,14 @@
 }
 
 static const struct filterops ttyread_filtops = {
-       .f_flags = FILTEROP_ISFD,
+       .f_flags = FILTEROP_ISFD | FILTEROP_MPSAFE,
        .f_attach = NULL,
        .f_detach = filt_ttyrdetach,
        .f_event = filt_ttyread,
 };
 
 static const struct filterops ttywrite_filtops = {
-       .f_flags = FILTEROP_ISFD,
+       .f_flags = FILTEROP_ISFD | FILTEROP_MPSAFE,
        .f_attach = NULL,
        .f_detach = filt_ttywdetach,
        .f_event = filt_ttywrite,
diff -r 57e3071c4717 -r bc45be7f897b sys/kern/tty_pty.c
--- a/sys/kern/tty_pty.c        Wed Sep 29 02:47:22 2021 +0000
+++ b/sys/kern/tty_pty.c        Wed Sep 29 13:14:39 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tty_pty.c,v 1.147 2021/09/26 01:16:10 thorpej Exp $    */
+/*     $NetBSD: tty_pty.c,v 1.148 2021/09/29 13:14:39 thorpej Exp $    */
 
 /*
  * Copyright (c) 1982, 1986, 1989, 1993
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tty_pty.c,v 1.147 2021/09/26 01:16:10 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tty_pty.c,v 1.148 2021/09/29 13:14:39 thorpej Exp $");
 
 #include "opt_ptm.h"
 
@@ -1002,14 +1002,14 @@
 }
 
 static const struct filterops ptcread_filtops = {
-       .f_flags = FILTEROP_ISFD,
+       .f_flags = FILTEROP_ISFD | FILTEROP_MPSAFE,
        .f_attach = NULL,
        .f_detach = filt_ptcrdetach,
        .f_event = filt_ptcread,
 };
 
 static const struct filterops ptcwrite_filtops = {
-       .f_flags = FILTEROP_ISFD,
+       .f_flags = FILTEROP_ISFD | FILTEROP_MPSAFE,
        .f_attach = NULL,
        .f_detach = filt_ptcwdetach,
        .f_event = filt_ptcwrite,



Home | Main Index | Thread Index | Old Index