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

Represents an ioctl command.

It can use the components of an ioctl command to dispatch ioctls using IoctlCommand::dispatch.

Implementations

Dispatches the given ioctl to the appropriate handler based on the value of the command. It also creates a UserSlicePtr, UserSlicePtrReader, or UserSlicePtrWriter depending on the direction of the buffer of the command.

It is meant to be used in implementations of Operations::ioctl and Operations::compat_ioctl.

Returns the raw 32-bit value of the command and the ptr-sized argument.

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.