Home | History | Annotate | Download | only in lib

Lines Matching refs:min_fd

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