• Home
  • Raw
  • Download

Lines Matching refs:fd

180 static int bpf_map_update_value(struct bpf_map *map, struct fd f, void *key,  in bpf_map_update_value()
673 static fmode_t map_get_sys_perms(struct bpf_map *map, struct fd f) in map_get_sys_perms()
1200 struct bpf_map *__bpf_map_get(struct fd f) in __bpf_map_get()
1227 struct fd f = fdget(ufd); in bpf_map_get()
1243 struct fd f = fdget(ufd); in bpf_map_get_with_uref()
1318 struct fd f; in map_lookup_elem()
1393 struct fd f; in map_update_elem()
1446 struct fd f; in map_delete_elem()
1503 struct fd f; in map_get_next_key()
1626 struct fd f; in generic_map_update_batch()
1793 struct fd f; in map_lookup_and_delete_elem()
1882 struct fd f; in map_freeze()
2192 static struct bpf_prog *____bpf_prog_get(struct fd f) in ____bpf_prog_get()
2259 struct fd f = fdget(ufd); in __bpf_prog_get()
2715 put_unused_fd(primer->fd); in bpf_link_cleanup()
2839 int fd, id; in bpf_link_prime() local
2841 fd = get_unused_fd_flags(O_CLOEXEC); in bpf_link_prime()
2842 if (fd < 0) in bpf_link_prime()
2843 return fd; in bpf_link_prime()
2848 put_unused_fd(fd); in bpf_link_prime()
2855 put_unused_fd(fd); in bpf_link_prime()
2861 primer->fd = fd; in bpf_link_prime()
2873 fd_install(primer->fd, primer->file); in bpf_link_settle()
2875 return primer->fd; in bpf_link_settle()
2885 struct fd f = fdget(ufd); in bpf_link_get_from_fd()
3370 int fd; in bpf_raw_tracepoint_open() local
3379 fd = bpf_raw_tp_link_attach(prog, u64_to_user_ptr(attr->raw_tracepoint.name)); in bpf_raw_tracepoint_open()
3380 if (fd < 0) in bpf_raw_tracepoint_open()
3382 return fd; in bpf_raw_tracepoint_open()
3745 int fd; in bpf_prog_get_fd_by_id() local
3757 fd = bpf_prog_new_fd(prog); in bpf_prog_get_fd_by_id()
3758 if (fd < 0) in bpf_prog_get_fd_by_id()
3761 return fd; in bpf_prog_get_fd_by_id()
3771 int fd; in bpf_map_get_fd_by_id() local
3795 fd = bpf_map_new_fd(map, f_flags); in bpf_map_get_fd_by_id()
3796 if (fd < 0) in bpf_map_get_fd_by_id()
3799 return fd; in bpf_map_get_fd_by_id()
4306 struct fd f; in bpf_obj_get_info_by_fd()
4413 u32 fd = attr->task_fd_query.fd; in bpf_task_fd_query() local
4435 file = fget_task(task, fd); in bpf_task_fd_query()
4501 struct fd f; in bpf_map_do_batch()
4773 int fd; in bpf_link_get_fd_by_id() local
4785 fd = bpf_link_new_fd(link); in bpf_link_get_fd_by_id()
4786 if (fd < 0) in bpf_link_get_fd_by_id()
4789 return fd; in bpf_link_get_fd_by_id()
4808 int fd; in bpf_enable_runtime_stats() local
4818 fd = anon_inode_getfd("bpf-stats", &bpf_stats_fops, NULL, O_CLOEXEC); in bpf_enable_runtime_stats()
4819 if (fd >= 0) in bpf_enable_runtime_stats()
4823 return fd; in bpf_enable_runtime_stats()
5190 BPF_CALL_1(bpf_sys_close, u32, fd) in BPF_CALL_1() argument
5197 return close_fd(fd); in BPF_CALL_1()