Skip to content

Breaking changes to eventfd support #12

@gofish

Description

@gofish

The current support for I/O event completion notification via eventfd(2) requires use of a single file descriptor for all notifications. Since the notification (e.g. via poll) occurs on the event FD and not the file FD, there is currently no way to determine how many and which requests have completed after the notification and before blocking in ioqueue_reap for one-or-more callback executions.

Using multiple event file descriptors would be useful in more complex use cases in which different subsystems of the same application or binary may wish to utilize the library for I/O and e.g. have different event notification or submission priorities or requirements.

Action Items

  1. Change the ioqueue_eventfd API method and documentation to open/create a new file descriptor for notification events, if the configured backend supports I/O event notification via poll.
  2. Add an optional eventFD parameter to the ioqueue_pread/pwrite methods.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions