Date: Tue, 4 Aug 2015 15:47:26 -0700 From: Garrett Cooper <yaneurabeya@gmail.com> To: freebsd-hackers <freebsd-hackers@freebsd.org> Cc: Hans Petter Selasky <hps@selasky.org> Subject: When and when not to use CTLFLAG_MPSAFE with the SYSCTL macros..? Message-ID: <F4A56F9C-058B-4D91-B75D-92DEC16E8B2E@gmail.com>
next in thread | raw e-mail | index | archive | help
Hi, I=92ve been trying to figure out (because sysctl(9) is lacking) = when to use CTLFLAG_MPSAFE. Is it strictly when dealing with SYSCTL_PROC = handlers that do proper locking of shared resources, or are there other = nuances that need to be handled? I=92m also asking because SYSCTL_UQUAD, for instance, explicitly = uses CTLFLAG_MPSAFE in the handler, which is a bit confusing. Thanks! -NGie=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?F4A56F9C-058B-4D91-B75D-92DEC16E8B2E>