lkml.org 
[lkml]   [2004]   [May]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject2.6.6 echo > /proc/sys/kernel/foo not invoking strategy routine
Date
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?

-
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/

\
 
 \ /
  Last update: 2005-03-22 14:03    [W:0.024 / U:0.016 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site