Searched refs:kernel_fd (Results 1 – 5 of 5) sorted by relevance
/systemd-251/src/shared/ |
D | bpf-program.c | 57 safe_close(p->kernel_fd); in bpf_program_free() 101 .kernel_fd = -1, in bpf_program_new() 124 .kernel_fd = -1, in bpf_program_new_from_bpffs_path() 131 r = bpf_program_get_info_by_fd(p->kernel_fd, &info, sizeof(info)); in bpf_program_new_from_bpffs_path() 146 if (p->kernel_fd >= 0) /* don't allow modification after we uploaded things to the kernel */ in bpf_program_add_instructions() 163 if (p->kernel_fd >= 0) { /* make this idempotent */ in bpf_program_load_kernel() 183 p->kernel_fd = bpf(BPF_PROG_LOAD, &attr, sizeof(attr)); in bpf_program_load_kernel() 184 if (p->kernel_fd < 0) in bpf_program_load_kernel() 195 if (p->kernel_fd >= 0) /* don't overwrite an assembled or loaded program */ in bpf_program_load_from_bpf_fs() 201 p->kernel_fd = bpf(BPF_OBJ_GET, &attr, sizeof(attr)); in bpf_program_load_from_bpf_fs() [all …]
|
D | bpf-program.h | 21 int kernel_fd; member
|
/systemd-251/src/core/ |
D | bpf-foreign.c | 101 r = bpf_program_get_id_by_fd(prog->kernel_fd, &prog_id); in bpf_foreign_prepare()
|
/systemd-251/src/test/ |
D | test-bpf-firewall.c | 84 attr.bpf_fd = p->kernel_fd; in main()
|
D | test-bpf-foreign-programs.c | 182 r = bpf_program_pin(prog->kernel_fd, test_suite[i].bpffs_path); in pin_programs()
|