Searched refs:min_fd (Results 1 - 3 of 3) sorted by relevance

/external/ltp/testcases/kernel/syscalls/fcntl/
H A Dfcntl02.c54 int min_fd = min_fds[n]; local
56 TEST(fcntl(fd, F_DUPFD, min_fd));
60 fname, min_fd);
64 if (TEST_RETURN < min_fd) {
66 fname, min_fd, TEST_RETURN, min_fd);
70 fname, min_fd, TEST_RETURN);
/external/iproute2/examples/bpf/
H A Dbpf_agent.c168 int *cmsg_buf, min_fd, i; local
175 for (i = 0; i < entries; i += min_fd) {
179 min_fd = min(BPF_SCM_MAX_FDS * 1U, entries - i);
181 bpf_map_set_init_single(&msg, min_fd);
193 min_fd = (cmsg->cmsg_len - sizeof(*cmsg)) / sizeof(fd);
194 if (min_fd > entries || min_fd <= 0)
197 memcpy(&fds[i], cmsg_buf, sizeof(fds[0]) * min_fd);
198 memcpy(&aux->ent[i], amsg_buf, sizeof(aux->ent[0]) * min_fd);
201 if (i + min_fd
[all...]
/external/iproute2/tc/
H A Dtc_bpf.c1737 int *cmsg_buf, min_fd; local
1752 for (i = 0; i < entries; i += min_fd) {
1755 min_fd = min(BPF_SCM_MAX_FDS * 1U, entries - i);
1756 bpf_map_set_init_single(&msg, min_fd);
1758 memcpy(cmsg_buf, &aux->fds[i], sizeof(aux->fds[0]) * min_fd);
1759 memcpy(amsg_buf, &aux->ent[i], sizeof(aux->ent[0]) * min_fd);
1774 int *cmsg_buf, min_fd; local
1783 for (i = 0; i < min(entries, needed); i += min_fd) {
1787 min_fd = min(entries, entries - i);
1788 bpf_map_set_init_single(&msg, min_fd);
[all...]

Completed in 910 milliseconds