Function in_u32

Source
pub unsafe fn in_u32(addr: u16) -> u32
Available on x86 or x86-64 only.
Expand description

Read a 32-bit value from the port at the given address in I/O space.

ยงSafety

This is an extremely low-level operation that can do anything: trigger an interrupt, overwrite arbitrary memory with DMA, shut down the system, launch a missile. Use with caution.