pub struct PollTable { /* private fields */ }
Expand description

Wraps the kernel’s struct poll_table_struct.

Invariants

The pointer PollTable::ptr is null or valid.

Implementations

Associates the given file and condition variable to this poll table. It means notifying the condition variable will notify the poll table as well; additionally, the association between the condition variable and the file will automatically be undone by the kernel when the file is destructed. To unilaterally remove the association before then, one can call CondVar::free_waiters.

Safety

If the condition variable is destroyed before the file, then CondVar::free_waiters must be called to ensure that all waiters are flushed out.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

This documentation is an old archive. Please see https://rust.docs.kernel.org instead.