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

get_module_base

Function get_module_base 

Source
pub fn get_module_base() -> usize
Expand description

Get a randomized module/driver load base address.

Returns a page-aligned random offset suitable for adding to the default module load region. Each call produces a different offset so different modules get different addresses.

Returns 0 if KASLR is not initialized.