]> git.alsa-project.org Git - alsa-utils.git/commit
axfer: add a common interface of waiter for I/O event notification
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Tue, 13 Nov 2018 06:41:40 +0000 (15:41 +0900)
committerTakashi Iwai <tiwai@suse.de>
Tue, 13 Nov 2018 11:04:48 +0000 (12:04 +0100)
commitcd211d8c22009c9b4866568ef5ff5d3426588fb3
tree51f4e229df84379bb6a90cd5860407527c7431c8
parent5eea6d346f141a19bddbcb1b3033ee6348fdbdc9
axfer: add a common interface of waiter for I/O event notification

There're several types of system calls for multiplexed I/O. They're used to
receive notifications of I/O events. Typically, userspace applications call
them against file descriptor to yield CPU. When I/O is enabled on any of
the descriptors, a task of the application is rescheduled, then the
application execute I/O calls.

This commit adds a common interface for this type of system calls, named as
'waiter'. This is expected to be used with non-blocking file operation and
operations on mapped page frame.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
axfer/Makefile.am
axfer/waiter.c [new file with mode: 0644]
axfer/waiter.h [new file with mode: 0644]
axfer/xfer-libasound-irq-mmap.c
axfer/xfer-libasound-irq-rw.c
axfer/xfer-libasound.c
axfer/xfer-libasound.h