pub struct Group(/* private fields */);
Expand description
A collection of related ioctl
s
In the Linux kernel macros, this is called the ioctl
type
. We have
chosen a distinct name to disambiguate from the ioctl
argument type.
Implementations§
Source§impl Group
impl Group
Sourcepub const fn new(value: u8) -> Self
pub const fn new(value: u8) -> Self
Create a new group for related ioctl
s from its allocated number
Sourcepub const unsafe fn read<'a, T>(self, nr: u8) -> Ioctl<Read, &'a T>
pub const unsafe fn read<'a, T>(self, nr: u8) -> Ioctl<Read, &'a T>
Define a new Read
ioctl
with an associated type
The nr
argument is the allocated integer which uniquely
identifies this ioctl
within the Group
.
§Safety
For safety details, see Ioctl::classic.
Sourcepub const unsafe fn write<'a, T>(self, nr: u8) -> Ioctl<Write, &'a T>
pub const unsafe fn write<'a, T>(self, nr: u8) -> Ioctl<Write, &'a T>
Define a new Write
ioctl
with an associated type
The nr
argument is the allocated integer which uniquely
identifies this ioctl
within the Group
.
§Safety
For safety details, see Ioctl::classic.
Sourcepub const unsafe fn write_read<'a, T>(self, nr: u8) -> Ioctl<WriteRead, &'a T>
pub const unsafe fn write_read<'a, T>(self, nr: u8) -> Ioctl<WriteRead, &'a T>
Define a new WriteRead
ioctl
with an associated type
The nr
argument is the allocated integer which uniquely
identifies this ioctl
within the Group
.
§Safety
For safety details, see Ioctl::classic.