Skip to content

Support waiting on POLLPRI events on Linux #4885

@ColonelThirtyTwo

Description

@ColonelThirtyTwo

Is your feature request related to a problem? Please describe.
/proc/self/mounts raises a priority event when there is a change in mount points (something is mounted or unmounted). There are probably other similar system-related files that do this as well. There appears to be no way of waiting for these in Tokio.

Describe the solution you'd like
Add a Priority variant to tokio::io::Interest and implement support for it in tokio::io::unix::AsyncFd.

Describe alternatives you've considered
Polling for changes manually. Writing my own select/poll loop in a blocking thread.

Additional context
None

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-tokioArea: The main tokio crateC-feature-requestCategory: A feature request.M-ioModule: tokio/io

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions