Skip to content

Libbpf userspace function libbpf_attach_type_by_name

0.0.1

Resolve the attach type from the provided ELF section name.

Definition

int libbpf_attach_type_by_name(const char *name, enum bpf_attach_type *attach_type);

Parameters

  • name: The ELF section name.
  • attach_type: Pointer to attach type, will be set to the resolved attach type.

Return

0 on success, negative error code on failure.

Usage

Docs could be improved

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

Example

Docs could be improved

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