Skip to content

Libbpf userspace function libbpf_unregister_prog_handler

0.8.0

Unregister a previously registered custom BPF program SEC handler.

Definition

int libbpf_unregister_prog_handler(int handler_id);

Parameters

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