Skip to main content

do_once_lite

Macro do_once_lite 

Source
macro_rules! do_once_lite {
    { $($e:tt)* } => { ... };
}
Expand description

Run the given function exactly once.

This is equivalent to the kernel’s DO_ONCE_LITE macro.

§Examples

kernel::do_once_lite! {
    kernel::pr_info!("This will be printed only once\n");
};