lkml.org 
[lkml]   [2004]   [Apr]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Subjectholding a reference on an inode?
From
Date
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.
-
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:02    [W:0.047 / U:0.292 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site