pub fn get_builder_vmlinux(
    c_dump_file: impl AsRef<Path>
) -> Result<Builder, String>
Expand description

Get bindgen::Builder that generates bindings using BTF of vmlinux

c_dump_file is a path of C header file where structs and enums will be written by VmlinuxBtfDump. It is just a temporary file that will be read by bindgen to generate rust bindings in the end. The file name of c_dump_file is used as an include-guard. e.g., if c_dump_file is “vmlinux.h” then the guard macro is __VMLINUX_H__