public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Randy.Dunlap" <rddunlap@osdlab.org>
To: Lukas Ruf <ruf@tik.ee.ethz.ch>
Cc: Linux Kernel ml <linux-kernel@vger.kernel.org>
Subject: Re: proc_mkdir -> where is proc_rmdir ?
Date: Sun, 09 Sep 2001 12:31:52 -0700	[thread overview]
Message-ID: <3B9BC3A8.9FC4A802@osdlab.org> (raw)
In-Reply-To: <20010909194137.B1968@tik.ee.ethz.ch>

Lukas Ruf wrote:
> 
> Dear all,
> 
> I created some directories below /proc while a module got installed.
> When I de-install the module, I would like to remove these directories as
> well?
> 
> First, I remove the entries within the directory by remove_proc_entry().
> So, the directories are empty.  But when I try to remove the self-created
> directories with a similar call to remove_proc_entry(), nothing happens.

Is the target proc directory in use, such as mounted?

> So, I simply ask: is there somewhere a proc_rmdir() ?  If not, how do I
> need to call the remove_proc_entry() such that the directory gets removed?
> 
> Thanks for any help!

remove_proc_entry() is what the usb subsystem uses to remove its
main usb-fs directory (/proc/bus/usb), and it works.

That's also what the proc-fs example at
http://kernelnewbies.org/documents/kdoc/procfs-guide/example.html
uses.  See that document if you haven't already.

~Randy

      reply	other threads:[~2001-09-09 19:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-09-09 17:41 proc_mkdir -> where is proc_rmdir ? Lukas Ruf
2001-09-09 19:31 ` Randy.Dunlap [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3B9BC3A8.9FC4A802@osdlab.org \
    --to=rddunlap@osdlab.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=ruf@tik.ee.ethz.ch \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox