Skip to main content

modentry

Function modentry 

Source
pub fn modentry(boot: i32, module: &mut dyn ModuleLifecycle) -> i32
Expand description

Port of modentry(int boot, Module m, void *ptr) from Src/modentry.c:7. Direct port of the C int modentry(int boot, Module m, void *ptr) switch — boot selects which lifecycle function to dispatch. Unknown values return 1 (matches C’s zerr("bad call to modentry"); return 1). WARNING: param names don’t match C — Rust=(boot, module) vs C=(boot, m, ptr)