⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

inb

Function inb 

Source
pub unsafe fn inb(port: u16) -> u8
Expand description

Read a byte from an x86_64 I/O port.

§Safety

The caller must ensure port is a valid I/O port address for the intended device. Reading from an incorrect port may return garbage or trigger hardware side effects.