Skip to content

KFunc bpf_local_irq_restore

v6.14

This function restores the Interrupt Request(IRQ) state from the stack and re-enables IRQs.

Definition

Parameters

flags__irq_flag Pointer to a 64 bit integer where the current IRQ state will be restored.

Signature

void bpf_local_irq_restore(long unsigned int *flags__irq_flag)

Usage

Intended use cases are writing IRQ safe data structures (e.g. memory allocator) in BPF programs natively, and use in new spin locking primitives.

Program types

The following program types can make use of this kfunc:

Example

Docs could be improved

This part of the docs is incomplete, contributions are very welcome