* Sysctl problem
@ 2001-05-31 16:14 Emmanuel Varagnat
0 siblings, 0 replies; only message in thread
From: Emmanuel Varagnat @ 2001-05-31 16:14 UTC (permalink / raw)
To: linux-kernel@vger.kernel.org
I registered a new directory and its tree in the proc filesystem with
some register_sysctl_table. And naturally I use unregister_sysctl_table
when the module is unloaded.
And everything seems to work fine.
Execpt that I can't read the corresponding data with the 'cat' command.
A 'strace'
shows me that 'cat' is in a loop :
...
read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
1024) = 1024
write(1, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
1024) = 1024
read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
1024) = 1024
write(1, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
1024) = 1024
...
I'm using my own function to change the data value, but helped by
proc_dointvec.
My function doesn't seem to be called.
Does anybody ever met something like this ?
Thanks
-Manu
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2001-05-31 16:15 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-05-31 16:14 Sysctl problem Emmanuel Varagnat
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox