Skip to content

Libbpf userspace function btf_ext__new

0.0.2

Create a new BTF extension object from raw data.

Definition

struct btf_ext *btf_ext__new(const __u8 *data, __u32 size);

Parameters

  • data: Raw data of the BTF extension
  • size: Size of the raw data

Return

A pointer to the BTF extension object. Or NULL is returned and errno is set.

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