rmmod whilst reading/writing sysctl

John Levon (moz@compsoc.man.ac.uk)
Wed, 31 Oct 2001 02:21:05 +0000


Where is the prevention of module unload whilst a sysctl from a module is being read/written ?

sysctl syscall is protected by BKL, but I can't see similar code for the cat >/proc/sys/...
case

If there is none, how do I support sysctl from a module safely ?

thanks
john

-- 
"I'm dismayed whenever libertarianism and programming are associated; in my
 mind, it is as nebulous as associating people who write books as communists or
 those who read newspapers as capitalists."
	- graydon
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/