Re: Ksyms request

From: David Grothe (dave@gcom.com)
Date: Thu Jan 13 2000 - 16:41:06 EST


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/



This archive was generated by hypermail 2b29 : Sat Jan 15 2000 - 21:00:23 EST