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

register_alert_callback

Function register_alert_callback 

Source
pub fn register_alert_callback(
    callback: &'static dyn AlertCallback,
) -> Result<(), KernelError>
Expand description

Register a real-time alert callback.

The callback will be invoked for critical events such as authentication failures, permission denials, and privilege escalation attempts.

Returns Ok(()) if registered, or Err if all callback slots are full.