Function init

Source
pub(crate) unsafe fn init(io_mem_builder: IoMemAllocatorBuilder)
Expand description

Initializes the static allocator based on builder. All the memory that belong to the system device should have been removed

  • This function should be executed after IoMemAllocatorBuilder::remove.

  • All the port I/O regions should originate from the macros sensitive_io_port and reserve_io_port_range.

  • crate::arch::io::MAX_IO_PORT should be bounded by the maximum value specified by architecture.