Module kernel::file_operations[][src]

Expand description

File operations.

C header: include/linux/fs.h

Structs

IoctlCommand

Represents an ioctl command.

PollTable

Wraps the kernel’s struct poll_table_struct.

ToUse

Represents which fields of [struct file_operations] should be populated with pointers.

Enums

SeekFrom

Equivalent to std::io::SeekFrom.

Constants

USE_NONE

A constant version where all values are to set to false, that is, all supported fields will be set to null pointers.

Traits

FileOpenAdapter

Trait for extracting file open arguments from kernel data structures.

FileOpener

Trait for implementers of kernel files.

FileOperations

Corresponds to the kernel’s struct file_operations.

IoctlHandler

Allows the handling of ioctls defined with the _IO, _IOR, _IOW, and _IOWR macros.