[PATCH xserver 07/24] os: Add NotifyFd interfaces
Keith Packard
keithp at keithp.com
Fri Sep 25 11:19:33 PDT 2015
Alan Coopersmith <alan.coopersmith at oracle.com> writes:
> On 09/20/15 11:16 PM, Keith Packard wrote:
>> This provides a callback-based interface to monitor file
>> descriptors beyond the usual client and device interfaces.
>>
>> Modules within the server using file descriptors for reading and/or
>> writing can call
>>
>> Bool SetNotifyFd(int fd, NotifyFdProcPtr notify_fd, int mask, void *data);
>>
>> mask can be any combination of X_NOTIFY_READ and X_NOTIFY_WRITE.
>
> Now that you've included the mask, should we mark
> http://patchwork.freedesktop.org/patch/10692/
> as superseded by this patch?
I'm offline at present, but if that's what I think it is, then yes :-)
> Any memory of what you wanted to use your proposed AddWriteSocket() API for
> all those years ago?
Ajax mentioned Xvnc as a prime candidate, which is why I added this part
of the API.
I also figured out that I could do the migration away from select(2)
by rewriting all of the current file descriptor stuff in terms of this
new API, so write-blocked clients will end up using this during that
transition.
--
-keith
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 810 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg-devel/attachments/20150925/c2e5ea81/attachment.sig>
More information about the xorg-devel
mailing list