Lines Matching refs:min_fd
2554 int *cmsg_buf, min_fd; in bpf_map_set_send() local
2564 for (i = 0; i < entries; i += min_fd) { in bpf_map_set_send()
2567 min_fd = min(BPF_SCM_MAX_FDS * 1U, entries - i); in bpf_map_set_send()
2568 bpf_map_set_init_single(&msg, min_fd); in bpf_map_set_send()
2570 memcpy(cmsg_buf, &aux->fds[i], sizeof(aux->fds[0]) * min_fd); in bpf_map_set_send()
2571 memcpy(amsg_buf, &aux->ent[i], sizeof(aux->ent[0]) * min_fd); in bpf_map_set_send()
2586 int *cmsg_buf, min_fd; in bpf_map_set_recv() local
2595 for (i = 0; i < min(entries, needed); i += min_fd) { in bpf_map_set_recv()
2599 min_fd = min(entries, entries - i); in bpf_map_set_recv()
2600 bpf_map_set_init_single(&msg, min_fd); in bpf_map_set_recv()
2614 min_fd = (cmsg->cmsg_len - sizeof(*cmsg)) / sizeof(fd); in bpf_map_set_recv()
2615 if (min_fd > entries || min_fd <= 0) in bpf_map_set_recv()
2618 memcpy(&fds[i], cmsg_buf, sizeof(fds[0]) * min_fd); in bpf_map_set_recv()
2619 memcpy(&aux->ent[i], amsg_buf, sizeof(aux->ent[0]) * min_fd); in bpf_map_set_recv()