/linux-master/drivers/power/supply/ |
H A D | mt6370-charger.c | 684 const struct mt6370_chg_field *fds = mt6370_chg_fields; local 689 fds[i].field); 694 fds[i].name);
|
/linux-master/drivers/vfio/pci/ |
H A D | vfio_pci_intrs.c | 539 unsigned count, int32_t *fds, bool msix) 545 int fd = fds ? fds[i] : -1; 702 int32_t *fds = data; local 707 fds, msix); 713 ret = vfio_msi_set_block(vdev, start, count, fds, msix); 538 vfio_msi_set_block(struct vfio_pci_core_device *vdev, unsigned start, unsigned count, int32_t *fds, bool msix) argument
|
/linux-master/fs/ |
H A D | file.c | 111 * Figure out how many fds we actually want to support in this fdtable. 742 struct files_struct *cur_fds = me->files, *fds = NULL; local 755 * If the caller requested all fds to be made cloexec we always 771 ret = unshare_fd(CLONE_FILES, max_unshare_fds, &fds); 779 if (fds) 780 swap(cur_fds, fds); 788 if (fds) { 796 put_files_struct(fds);
|
H A D | select.c | 15 * of fds to overcome nfds < 16390 descriptors limit (Tigran Aivazian). 414 #define FDS_IN(fds, n) (fds->in + n) 415 #define FDS_OUT(fds, n) (fds->out + n) 416 #define FDS_EX(fds, n) (fds->ex + n) 418 #define BITS(fds, n) (*FDS_IN(fds, n)|*FDS_OUT(fds, 420 max_select_fd(unsigned long n, fd_set_bits *fds) argument 479 do_select(int n, fd_set_bits *fds, struct timespec64 *end_time) argument 628 fd_set_bits fds; local 1023 struct pollfd *fds = walk->entries; local 1199 fd_set_bits fds; local [all...] |
/linux-master/fs/jffs2/ |
H A D | nodelist.h | 247 struct jffs2_full_dirent *fds; member in struct:jffs2_readinode_info
|
H A D | readinode.c | 701 jffs2_add_fd_to_list(c, fd, &rii->fds); 1139 jffs2_free_full_dirent_list(rii->fds); 1140 rii->fds = NULL; 1195 f->dents = rii.fds; 1203 if (!rii.fds) { 1415 struct jffs2_full_dirent *fd, *fds; local 1433 fds = f->dents; 1434 while(fds) { 1435 fd = fds; 1436 fds [all...] |
/linux-master/include/uapi/linux/ |
H A D | io_uring.h | 613 __aligned_u64 /* __s32 * */ fds; member in struct:io_uring_files_update
|
/linux-master/io_uring/ |
H A D | register.c | 38 __s32 __user *fds = arg; local 46 if (copy_from_user(&fd, fds, sizeof(*fds)))
|
H A D | rsrc.c | 358 __s32 __user *fds = u64_to_user_ptr(up->data); local 373 copy_from_user(&fd, &fds[done], sizeof(fd))) { 574 __s32 __user *fds = u64_to_user_ptr(up->arg); local 583 if (copy_from_user(&fd, &fds[done], sizeof(fd))) { 597 if (copy_to_user(&fds[done], &ret, sizeof(ret))) { 702 __s32 __user *fds = (__s32 __user *) arg; local 729 if (fds && copy_from_user(&fd, &fds[i], sizeof(fd))) { 734 if (!fds || fd == -1) {
|
/linux-master/kernel/ |
H A D | audit.h | 209 int fds[2]; member in struct:audit_context
|
H A D | auditsc.c | 1025 ctx->fds[0] = -1; 1041 context->fds[0] = -1; 1756 if (context->fds[0] >= 0) { 1760 context->fds[0], context->fds[1]); 2696 context->fds[0] = fd1; 2697 context->fds[1] = fd2;
|
/linux-master/samples/cgroup/ |
H A D | memcg_event_listener.c | 229 struct pollfd fds[1]; local 234 fds[0].fd = events->inotify_fd; 235 fds[0].events = POLLIN; 238 ret = poll(fds, ARRAY_SIZE(fds), -1); 242 if (fds[0].revents & POLLERR) 245 if (fds[0].revents & POLLIN) { 250 length = read(fds[0].fd, buffer, INOTIFY_BUFFER_SIZE);
|
/linux-master/samples/nitro_enclaves/ |
H A D | ne_ioctl_sample.c | 199 struct pollfd fds[1] = {}; local 205 fds[0].fd = enclave_fd; 206 fds[0].events = POLLIN | POLLERR | POLLHUP; 212 rc = poll(fds, 1, NE_POLL_WAIT_TIME_MS); 228 printf("Poll received value 0x%x\n", fds[0].revents); 230 if (fds[0].revents & POLLHUP) { 236 if (fds[0].revents & POLLNVAL) { 656 struct pollfd fds[1] = {}; local 696 fds[0].fd = server_vsock_fd; 697 fds[ [all...] |
/linux-master/scripts/ |
H A D | jobserver-exec | 21 # Note that GNU Make has used --jobserver-fds and --jobserver-auth 28 fds = opts[-1].split("=", 1)[1] 32 _, _, path = fds.partition('fifo:') 38 reader, writer = [int(x) for x in fds.split(",", 1)] 61 # Any missing environment strings or bad fds should result in just
|
/linux-master/tools/bpf/bpftool/ |
H A D | common.c | 806 static int prog_fd_by_nametag(void *nametag, int **fds, bool tag) argument 856 tmp = realloc(*fds, (nb_fds + 1) * sizeof(int)); 861 *fds = tmp; 863 (*fds)[nb_fds++] = fd; 870 close((*fds)[nb_fds]); 874 int prog_parse_fds(int *argc, char ***argv, int **fds) argument 889 (*fds)[0] = bpf_prog_get_fd_by_id(id); 890 if ((*fds)[0] < 0) { 908 return prog_fd_by_nametag(tag, fds, true); 921 return prog_fd_by_nametag(name, fds, fals 942 int *fds = NULL; local 967 map_fd_by_name(char *name, int **fds) argument 1025 map_parse_fds(int *argc, char ***argv, int **fds) argument 1079 int *fds = NULL; local [all...] |
H A D | main.h | 169 int prog_parse_fds(int *argc, char ***argv, int **fds); 171 int map_parse_fds(int *argc, char ***argv, int **fds);
|
H A D | map.c | 633 int *fds = NULL; local 637 fds = malloc(sizeof(int)); 638 if (!fds) { 642 nb_fds = map_parse_fds(&argc, &argv, &fds); 649 err = bpf_map_get_info_by_fd(fds[i], &info, &len); 654 close(fds[i]); 659 show_map_close_json(fds[i], &info); 661 show_map_close_plain(fds[i], &info); 663 close(fds[i]); 669 free(fds); 768 maps_have_btf(int *fds, int nb_fds) argument 901 int *fds = NULL; local [all...] |
H A D | prog.c | 603 int *fds = NULL; local 607 fds = malloc(sizeof(int)); 608 if (!fds) { 612 nb_fds = prog_parse_fds(&argc, &argv, &fds); 619 err = show_prog(fds[i]); 622 close(fds[i]); 625 close(fds[i]); 631 free(fds); 885 int *fds = NULL; local 903 fds [all...] |
/linux-master/tools/include/nolibc/ |
H A D | sys.h | 840 * int poll(struct pollfd *fds, int nfds, int timeout); 844 int sys_poll(struct pollfd *fds, int nfds, int timeout) argument 853 return my_syscall5(__NR_ppoll, fds, nfds, (timeout >= 0) ? &t : NULL, NULL, 0); 855 return my_syscall3(__NR_poll, fds, nfds, timeout); 857 return __nolibc_enosys(__func__, fds, nfds, timeout); 862 int poll(struct pollfd *fds, int nfds, int timeout) argument 864 return __sysret(sys_poll(fds, nfds, timeout));
|
H A D | types.h | 122 unsigned long fds[(FD_SETSIZE + FD_SETBITMASK) / FD_SETIDXMASK]; member in struct:__anon753 129 __set->fds[__fd / FD_SETIDXMASK] &= \ 137 __set->fds[__fd / FD_SETIDXMASK] |= \ 146 __r = !!(__set->fds[__fd / FD_SETIDXMASK] & \ 156 __set->fds[__idx] = 0; \
|
/linux-master/tools/include/uapi/linux/ |
H A D | io_uring.h | 578 __aligned_u64 /* __s32 * */ fds; member in struct:io_uring_files_update
|
/linux-master/tools/perf/bench/ |
H A D | sched-messaging.c | 66 static void fdpair(int fds[2]) argument 69 if (pipe(fds) == 0) 72 if (socketpair(AF_UNIX, SOCK_STREAM, 0, fds) == 0) 224 int fds[2]; local 233 fdpair(fds); 236 ctx->in_fds[0] = fds[0]; 237 ctx->in_fds[1] = fds[1]; 243 snd_ctx->out_fds[i] = fds[1]; 245 close(fds[0]); 248 /* Now we have all the fds, for [all...] |
/linux-master/tools/power/x86/turbostat/ |
H A D | turbostat.c | 3240 struct amperf_group_fd fds = {.aperf = -1, .mperf = -1 }; local 3242 fds.aperf = open_perf_counter(cpu, msr_type, aperf_config, -1, PERF_FORMAT_GROUP); 3243 fds.mperf = open_perf_counter(cpu, msr_type, mperf_config, fds.aperf, PERF_FORMAT_GROUP); 3245 return fds; 6582 struct amperf_group_fd fds; local 6599 fds = open_amperf_fd(base_cpu); 6600 has_access_cached = (fds.aperf != -1) && (fds.mperf != -1); 6602 if (fds [all...] |
/linux-master/tools/testing/selftests/bpf/benchs/ |
H A D | bench_local_storage_create.c | 13 int *fds; member in struct:thread 120 t->fds = malloc(batch_sz * sizeof(*t->fds)); 121 if (!t->fds) { 122 fprintf(stderr, "cannot alloc t->fds\n"); 149 int *fds = t->fds; local 154 fds[i] = socket(AF_INET6, SOCK_DGRAM, 0); 155 if (fds[i] == -1) 160 if (fds[ [all...] |
/linux-master/tools/testing/selftests/bpf/ |
H A D | network_helpers.c | 153 int *fds; local 161 fds = malloc(sizeof(*fds) * nr_listens); 162 if (!fds) 165 fds[0] = __start_server(type, (struct sockaddr *)&addr, addrlen, &opts); 166 if (fds[0] == -1) 170 if (getsockname(fds[0], (struct sockaddr *)&addr, &addrlen)) 174 fds[nr_fds] = __start_server(type, (struct sockaddr *)&addr, addrlen, &opts); 175 if (fds[nr_fds] == -1) 179 return fds; 195 free_fds(int *fds, unsigned int nr_close_fds) argument [all...] |