Re: Ksyms request

David Grothe (dave@gcom.com)
Thu, 13 Jan 2000 15:41:06 -0600


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/