Home
last modified time | relevance | path

Searched refs:get_opts (Results 1 – 2 of 2) sorted by relevance

/linux/tools/testing/selftests/bpf/prog_tests/
H A Dbpf_obj_pinning.c39 LIBBPF_OPTS(bpf_obj_get_opts, get_opts); in bpf_obj_pinning_detached()
87 get_opts.file_flags = BPF_F_PATH_FD; in bpf_obj_pinning_detached()
88 get_opts.path_fd = mnt_fd; in bpf_obj_pinning_detached()
89 map_fd2 = bpf_obj_get_opts(map_name, &get_opts); in bpf_obj_pinning_detached()
186 LIBBPF_OPTS(bpf_obj_get_opts, get_opts); in validate_get()
212 get_opts.file_flags = BPF_F_PATH_FD; in validate_get()
213 get_opts.path_fd = open("/sys/fs/bpf", O_PATH); in validate_get()
214 ASSERT_GE(get_opts.path_fd, 0, "path_fd"); in validate_get()
219 map_fd2 = bpf_obj_get_opts(pin_path, &get_opts); in validate_get()
224 if (path_kind == PATH_FD_REL && get_opts.path_fd >= 0) in validate_get()
[all …]
/linux/drivers/net/ethernet/hisilicon/hns/
H A Dhnae.h472 int (*get_opts)(struct hnae_handle *handle, int type, void **opts); member