Struct kernel::file_operations::PollTable[][src]

pub struct PollTable { /* fields omitted */ }
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

Performs the conversion.

Performs the conversion.

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.