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: ordering calls to driver's ::start() routine?



Dan Markarian writes:
> Hi Andrew,
>
> Does the unit number have to be a zero-based consecutive number? Would
> 12 and 14 be acceptable unit numbers? You might also wish to consider
> using the path to your device object instead to distinguish one from the
> next. It's meant to be unique and persistent, and it's a little more
> tangible, if it fits your goals.

Nope.. It should be 0..N. Or at least consecutive. It's used in a
BSD character device, as well as an "ethernet" device number. I use
IOKit to talk to the hardware & present an OS-bypass network interface
via a BSD cdev, and an ethernet emulation device via a normal,
non-IOKit ethernet driver that's shared with FreeBSD & Tru64.

Looks like I'll need to write my own serialization, huh?

Drew


References: 
 >Re: ordering calls to driver's ::start() routine? (From: Andrew Gallatin <email@hidden>)
 >Re: ordering calls to driver's ::start() routine? (From: Dan Markarian <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.