public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: John McCutchan <ttb@tentacle.dhs.org>
To: linux-kernel@vger.kernel.org
Subject: holding a reference on an inode?
Date: Tue, 20 Apr 2004 20:28:16 -0400	[thread overview]
Message-ID: <1082507296.3133.4.camel@vertex> (raw)

Hello,

I am writing a kernel module, and I would like to allow user space to
hand me a FILE, and then for my kernel module to keep a reference on its
inode regardless what the user space program does with the FILE. 

1) Is this good practice?
2) How do I get notified when the filesystem the inode is on is being   
unmounted so I can release my reference? So that I don't block the
unmount.


I am not subscribed so please CC on my replies. 

Thank you.

             reply	other threads:[~2004-04-21  0:27 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-21  0:28 John McCutchan [this message]
2004-04-23 12:48 ` holding a reference on an inode? Jan Kara

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=1082507296.3133.4.camel@vertex \
    --to=ttb@tentacle.dhs.org \
    --cc=linux-kernel@vger.kernel.org \
    /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