Home
last modified time | relevance | path

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

/openbmc/qemu/net/
H A Daf-xdp.c56 int map_fd; member
282 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()
/openbmc/qemu/hw/9pfs/
H A D9p-local.c243 int map_dirfd = -1, map_fd; in local_set_mapped_file_attrat() local
307 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()