lkml.org 
[lkml]   [2002]   [Nov]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjecthandling of empty directories by unregister_sysctl_table()
Hi folks,

I have a question regarding the sysctl-API. I create a new directory
structure (proc/sys/net/foo) that includes some files and a directory
that contains no files in the beginning (/proc/sys/net/foo/bar/). The
files in this directory can be registered later during runtime
(proc/net/foo/bar/1). They can also be unregisterd. If I unregister the
last file in this directory, the directory itself (the bar directory)
will also be removed. However, in my understanding this directory is
still a child of the ctl_table that creates the initial directory
structure and that also contains /proc/net/foo/bar. What am I doing
wrong?

Regards,
Tino
-
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 13:30    [W:0.033 / U:0.196 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site