Libbpf userspace function libbpf_unregister_prog_handler
Unregister a previously registered custom BPF program SEC
handler.
Definition
int libbpf_unregister_prog_handler(int handler_id);
Parameters
handler_id
: handler ID returned bylibbpf_register_prog_handler
after successful registration
Return
0 on success, negative error code if handler isn't found
Usage
Note
like much of global libbpf APIs (e.g., libbpf_set_print
, libbpf_set_strict_mode
, etc) these APIs are not thread-safe. User needs to ensure synchronization if there is a risk of running this API from multiple threads simultaneously.
Example
Docs could be improved
This part of the docs is incomplete, contributions are very welcome