1 use system_error::SystemError; 2 use unified_init::{define_public_unified_initializer_slice, unified_init}; 3 4 define_public_unified_initializer_slice!(INITCALL_PURE); 5 define_public_unified_initializer_slice!(INITCALL_CORE); 6 define_public_unified_initializer_slice!(INITCALL_POSTCORE); 7 define_public_unified_initializer_slice!(INITCALL_ARCH); 8 define_public_unified_initializer_slice!(INITCALL_SUBSYS); 9 define_public_unified_initializer_slice!(INITCALL_FS); 10 define_public_unified_initializer_slice!(INITCALL_ROOTFS); 11 define_public_unified_initializer_slice!(INITCALL_DEVICE); 12 define_public_unified_initializer_slice!(INITCALL_LATE); 13 14 pub fn do_initcalls() -> Result<(), SystemError> { 15 unified_init!(INITCALL_PURE); 16 unified_init!(INITCALL_CORE); 17 unified_init!(INITCALL_POSTCORE); 18 unified_init!(INITCALL_ARCH); 19 unified_init!(INITCALL_SUBSYS); 20 unified_init!(INITCALL_FS); 21 unified_init!(INITCALL_ROOTFS); 22 unified_init!(INITCALL_DEVICE); 23 unified_init!(INITCALL_LATE); 24 return Ok(()); 25 } 26