Searched refs:map_fd (Results 1 – 2 of 2) sorted by relevance
56 int map_fd; member282 if (s->map_fd >= 0) { in af_xdp_cleanup()284 if (bpf_map_delete_elem(s->map_fd, &idx)) { in af_xdp_cleanup()288 close(s->map_fd); in af_xdp_cleanup()289 s->map_fd = -1; in af_xdp_cleanup()414 s->map_fd = bpf_obj_get(s->map_path); in af_xdp_update_xsk_map()415 if (s->map_fd < 0) { in af_xdp_update_xsk_map()420 if (bpf_map_update_elem(s->map_fd, &idx, &xsk_fd, 0)) { in af_xdp_update_xsk_map()555 s->map_fd = -1; in net_init_af_xdp()
243 int map_dirfd = -1, map_fd; in local_set_mapped_file_attrat() local307 map_fd = fileno(fp); in local_set_mapped_file_attrat()308 assert(map_fd != -1); in local_set_mapped_file_attrat()309 ret = fchmod(map_fd, 0600); in local_set_mapped_file_attrat()