Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
synchronization in an ethernet driver
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

synchronization in an ethernet driver



I'm writing my first pure, straight-to-hardware, ethernet driver for
darwin.  I'm just wondering what serialization is provided by IOKit,
and what do I need to provide for myself.  I've read the "Network
Device Driver Programming Guide", and it only mentions locking in the
context of using a gated output queue, and it suggests that the driver
protect the enable/disable methods with a mutex.

What about all the other entry points to the driver?  For example, can
setPromiscuousMode() be called simultaniously from multiple threads?
Or do these calls happen in the workloop context so they are
automagically gated?  How about setMaxPacketSize()?


Thank you,

Drew



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

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 © 2011 Apple Inc. All rights reserved.