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: Poll support implementation



Title: RE: Poll support implementation

I'm sorry for my late reply - thanks for your answer.

>If you need portability, you should probably use select().  In theory, 
>you could depend on BSDKernel and use knote()/knote_attach()/
>knote_detach() directly to generate eventts, but in practice you will 
>probably not be happy with this.

I'll go for select(), yes.

>Basically, select() muxes through to the d_select routine in the 
>cdevsw entry for your character device, which is what everyone 
>eventually calls to see if there's any events to wake up from.

I can't find any example in the xnu sources and other Mac OS char devices. Would you be
so kind to point me at a char device or some other snippet implementing d_select ?

Thanks,

Jernej.


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