Skip to main content

hook_has_code

Function hook_has_code 

Source
pub fn hook_has_code(hook: &str) -> bool
Expand description

Whether the kernel hook hook holds code: HookStore::has_code. Checks l3_hooks_loaded() first and probes with non-interning Token::try_cs so checking an empty/undeclared hook never permanently interns 3 SymStrs.