On Mon, Jun 13, 2005 at 08:59:17PM +0100, Christoph Hellwig wrote:
> disk drivers use a completely different set of entry points in Linux,
> and don't have access to per-fd data even in the case they're opened
> from userland.  Character drivers to which this applies OTOH always
> get a valid struct file, it's guranteed as part of the driver API.
That beeing said I'd suggest to not pass down the whole file struct
if you want to add this feature for freebsd but just some well-defined
API to store data in them.  Giving driver writers less rope to shoot
themselves improves averange driver quality significantly.  We'll probably
move towards such an API in Linux aswell one day, but it's a lot of work
once drivers have started to do all kinds of nasty things.
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to