aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/usb/net/if_mos.c
diff options
context:
space:
mode:
authorPawel Biernacki <kaktus@FreeBSD.org>2020-02-15 18:52:12 +0000
committerPawel Biernacki <kaktus@FreeBSD.org>2020-02-15 18:52:12 +0000
commitf8d2b1f3f72086bd169f1a0890b6faba8434a01a (patch)
treef8fadc19e72c17bf59e54aace643bdc696f250a3 /sys/dev/usb/net/if_mos.c
parente0d69c5a88ed604cce5a98e49ea99b33447ee88b (diff)
downloadsrc-f8d2b1f3f72086bd169f1a0890b6faba8434a01a.tar.gz
src-f8d2b1f3f72086bd169f1a0890b6faba8434a01a.zip
Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (2 of many)
r357614 added CTLFLAG_NEEDGIANT to make it easier to find nodes that are still not MPSAFE (or already are but aren’t properly marked). Use it in preparation for a general review of all nodes. This is non-functional change that adds annotations to SYSCTL_NODE and SYSCTL_PROC nodes using one of the soon-to-be-required flags. Reviewed by: hselasky, kib Approved by: kib (mentor) Differential Revision: https://reviews.freebsd.org/D23632
Notes
Notes: svn path=/head/; revision=357972
Diffstat (limited to 'sys/dev/usb/net/if_mos.c')
-rw-r--r--sys/dev/usb/net/if_mos.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/usb/net/if_mos.c b/sys/dev/usb/net/if_mos.c
index 3a066bf3459a..d42934ff28de 100644
--- a/sys/dev/usb/net/if_mos.c
+++ b/sys/dev/usb/net/if_mos.c
@@ -144,7 +144,8 @@ __FBSDID("$FreeBSD$");
#ifdef USB_DEBUG
static int mos_debug = 0;
-static SYSCTL_NODE(_hw_usb, OID_AUTO, mos, CTLFLAG_RW, 0, "USB mos");
+static SYSCTL_NODE(_hw_usb, OID_AUTO, mos, CTLFLAG_RW | CTLFLAG_MPSAFE, 0,
+ "USB mos");
SYSCTL_INT(_hw_usb_mos, OID_AUTO, debug, CTLFLAG_RWTUN, &mos_debug, 0,
"Debug level");
#endif