* 2.6.6 echo > /proc/sys/kernel/foo not invoking strategy routine
@ 2004-05-14 6:04 Keith Owens
0 siblings, 0 replies; only message in thread
From: Keith Owens @ 2004-05-14 6:04 UTC (permalink / raw)
To: linux-kernel
In kernel/sysctl.c, you can define a ctl_table entry that has a
proc_handler of proc_dointvec and also define your own strategy
routine. It turns out that the strategy routine is not called, despite
the comments saying it should be. echo 1 > /proc/sys/kernel/foo
invokes sys_write() -> proc_writesys() -> do_rw_proc() ->
proc_dointvec() and completely ignores the strategy field. The
strategy is only used on the do_sysctl() path, which is deprecated. Is
this deliberate?
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-05-14 6:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-14 6:04 2.6.6 echo > /proc/sys/kernel/foo not invoking strategy routine Keith Owens
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®