lkml.org 
[lkml]   [2000]   [Jan]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Ksyms request
Alexander Viro wrote:

> On Wed, 12 Jan 2000, David Grothe wrote:
>
> When a user opens this /dev
> > file he/she gets a unique instance of whatever the driver is managing
> > (e.g., pseudo-ttys, virtual circuit, etc).
>
> You don't need inodes for that. If it is done on per-opener basis
> - forget all stuff with minors and associate the data with struct file.
> file->private is your friend.

OK, we have a winner here. Using file->private_data vastly simplified this
code. Now I don't have to juggle dentries and inodes anymore to open a clone.

Thanks,
Dave



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

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