/[base]
ViewVC logotype

Revision 357614


Jump to revision: Previous Next
Author: kaktus
Date: Thu Feb 6 12:45:58 2020 UTC (4 years, 4 months ago)
Changed paths: 2
Log Message:
sysctl(9): add CTLFLAG_NEEDGIANT flag

Add CTLFLAG_NEEDGIANT flag (modelled after D_NEEDGIANT) that will be used to
mark sysctls that still require locking Giant.

Rewrite sysctl_handle_string() to use internal locking instead of locking
Giant.

Mark SYSCTL_STRING, SYSCTL_OPAQUE and their variants as MPSAFE.

Add infrastructure support for enforcing proper use of CTLFLAG_NEEDGIANT
and CTLFLAG_MPSAFE flags with SYSCTL_PROC and SYSCTL_NODE, not enabled yet.

Reviewed by:	kib (mentor)
Approved by:	kib (mentor)
Differential Revision:	https://reviews.freebsd.org/D23378


Changed paths

Path Details
Directoryhead/sys/kern/kern_sysctl.c modified , text changed
Directoryhead/sys/sys/sysctl.h modified , text changed

  ViewVC Help
Powered by ViewVC 1.1.27