KFunc bpf_wakeup_sources_read_unlock
Release the sleepable RCU lock for wake-up sources.
Definition
The BPF verifier guarantees that lock is a valid, unreleased pointer from the acquire function. We decode the pointer back into the integer sleepable RCU index by subtracting 1 and release the lock.
Parameters
lock: The opaque pointer returned by bpf_wakeup_sources_read_lock
Signature
void bpf_wakeup_sources_read_unlock(struct bpf_ws_lock *lock)
Note
This kfunc releases the pointer passed in to it. There can be only one referenced pointer that can be passed in. All copies of the pointer being released are invalidated as a result of invoking this kfunc.
Usage
Docs could be improved
This part of the docs is incomplete, contributions are very welcome
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