kernel

Macro static_branch_unlikely

Source
macro_rules! static_branch_unlikely {
    ($key:path, $keytyp:ty, $field:ident) => { ... };
}
Expand description

Branch based on a static key.

Takes three arguments:

  • key - the path to the static variable containing the static_key.
  • keytyp - the type of key.
  • field - the name of the field of key that contains the static_key.

§Safety

The macro must be used with a real static key defined by C.