[lkml]   [2003]   [Jan]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subjectopening a charcter device without using filp_open()
Hi all,

Is it possible to open a character device in kernel space without
actually openning the device file? Because I don't wan to hold the usage
count of a particular mount or dcache.

This is what I planned to do,

struct file fake_devfile = {0};
struct dentry fake_dentry = {0};
struct inode fake_inode = {0};

/* Link up fake file,dentry, inode */

Then I will call the f_op of the character device directly, please give
advice. Thanks.

David Chow

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:32    [W:0.031 / U:0.952 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site