RE: Poll support implementation
RE: Poll support implementation
- Subject: RE: Poll support implementation
- From: "Jernej Azarija" <email@hidden>
- Date: Mon, 27 Aug 2007 15:21:14 +0200
- Thread-topic: 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:
This email sent to email@hidden