[−][src]Trait x86_64::structures::port::PortWrite
A helper trait that implements the write port operation.
On x86, I/O ports operate on either u8
(via inb
/outb
), u16
(via inw
/outw
),
or u32
(via inl
/outl
). Therefore this trait is implemented for exactly these types.
Required methods
unsafe fn write_to_port(port: u16, value: Self)
Writes a Self
value to the given port.
This function is unsafe because the I/O port could have side effects that violate memory safety.