Struct kernel::file_operations::IoctlCommand[][src]

pub struct IoctlCommand { /* fields omitted */ }
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 FileOperations::ioctl and FileOperations::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

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.