Skip to main content

Crate arch_rs

Crate arch_rs 

Source

Structs§

InterruptDisableGuard
A guard that disables interrupts on the current CPU when created, and restores the previous interrupt state when dropped.
InterruptSavedState
The saved interrupt state, representing architecture-specific interrupt flags.

Functions§

arch_interrupt_restore
Restore the interrupt state on the current CPU to a previously saved state.
arch_interrupt_save
Save the current interrupt state (specifically, whether interrupts are enabled) and disable interrupts on the current CPU.
curr_cpu_num
Returns the CPU number of the calling CPU.
disable_ints
Disable interrupts on the current CPU.
enable_ints
Enable interrupts on the current CPU.
ints_disabled
Returns true if interrupts are disabled on the current CPU.
max_num_cpus
Returns the maximum number of CPUs in the system.