Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: IOKit /devfs



On Thu, 2005-05-19 at 10:09 -0400, Andrew Gallatin wrote:
> Hado Hein writes:
>  > I want to implement a device interfacing api in /dev that is already
>  > done in linux.
> 
> Bear in mind that the BSD /dev interface does not provide you with
> any easy way to keep track of per-open information.  Eg, there
> is no file_ptr->private_data.
> 
> The only easy way to do this is to have a whole slew of minors, allow
> only one open per minor, and to lookup your per-open information based
> on the minor number.

I'm not specialist of FreeBSD at all, but what about file->f_data ?

Ben.


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-drivers mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/darwin-drivers/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.