Skip to main content

read_irq_affinity

Function read_irq_affinity 

Source
pub fn read_irq_affinity(irq: u32) -> Result<Vec<u32>>
Expand description

Read the CPU affinity mask for a specific IRQ number.

Reads /proc/irq/<irq>/smp_affinity to determine which cores handle a given interrupt. Useful for co-locating scan threads with NVMe IRQ handlers on the same NUMA socket.

ยงErrors

Returns an error if the sysfs file cannot be read or parsed.