/linux/tools/testing/selftests/net/rds/ |
H A D | test.py | 44 ret = setns(f.fileno(), 0) 53 socket.send_fds(u0, [], [s.fileno()]) 150 s.fileno(): s for s in sockets 186 send_hashes.setdefault((sender.fileno(), receiver.fileno()), 199 for fileno, eventmask in ep.poll(): 200 receiver = fileno_to_socket[fileno] 207 recv_hashes.setdefault((sender.fileno(), 208 receiver.fileno()), hashlib.sha256()).update(
|
/linux/tools/crypto/ccp/ |
H A D | dbc.py | 37 ret = lib.get_nonce(device.fileno(), ctypes.byref(buf), signature) 48 ret = lib.set_uid(device.fileno(), new_uid, signature) 61 ret = lib.process_param(device.fileno(), message[0], ctypes.pointer(sig), ctypes.pointer(arg))
|
/linux/tools/testing/selftests/mm/ |
H A D | map_populate.c | 89 ret = ftruncate(fileno(ftmp), MMAP_SZ); in main() 93 MAP_SHARED, fileno(ftmp), 0); in main() 119 return child_f(sock[0], smap, fileno(ftmp)); in main()
|
H A D | gup_longterm.c | 273 fd = fileno(file); in run_with_tmpfile() 275 ksft_test_result_fail("fileno() failed\n");
|
H A D | cow.c | 428 fd = fileno(file); in do_test_iouring() 1618 fd = fileno(file); in run_with_tmpfile()
|
/linux/drivers/scsi/bfa/ |
H A D | bfa_cs.h | 42 u16 fileno; member 46 u16 fileno; 104 __bfa_trc(struct bfa_trc_mod_s *trcm, int fileno, int line, u64 data); 107 __bfa_trc32(struct bfa_trc_mod_s *trcm, int fileno, int line, u32 data);
|
/linux/tools/testing/selftests/turbostat/ |
H A D | smi_aperf_mperf.py | 58 if len(pread(file_msr.fileno(), 8, MSR_IA32_MPERF)) != 8: 61 if len(pread(file_msr.fileno(), 8, MSR_IA32_APERF)) != 8:
|
/linux/tools/testing/selftests/bpf/ |
H A D | trace_helpers.c | 318 err = procmap_query(fileno(f), addr, PROCMAP_QUERY_VMA_EXECUTABLE, &start, &base, &flags); in get_uprobe_offset() 384 err = procmap_query(fileno(f), (const void *)addr, 0, &start, &offset, &flags); in get_rel_offset() 498 fcntl(fileno(fp), F_SETFL, O_NONBLOCK); in read_trace_pipe_iter()
|
H A D | test_sockmap.c | 442 fp = fileno(file); in msg_loop_sendpage()
|
/linux/drivers/scsi/ |
H A D | st.c | 2715 int fileno, blkno, at_sm, undone; in st_int_ioctl() local 2727 fileno = STps->drv_file; in st_int_ioctl() 2743 if (fileno >= 0) in st_int_ioctl() 2744 fileno += arg; in st_int_ioctl() 2759 if (fileno >= 0) in st_int_ioctl() 2760 fileno -= arg; in st_int_ioctl() 2795 blkno = fileno = (-1); in st_int_ioctl() 2808 blkno = fileno = (-1); in st_int_ioctl() 2841 if (fileno >= 0) in st_int_ioctl() 2842 fileno += arg; in st_int_ioctl() [all …]
|
/linux/tools/testing/selftests/devices/error_logs/ |
H A D | test_device_error_logs.py | 42 os.set_blocking(f.fileno(), False)
|
/linux/tools/perf/util/ |
H A D | data.h | 74 return fileno(data->file.fptr); in perf_data__fd()
|
/linux/scripts/clang-tools/ |
H A D | run-clang-tools.py | 95 os.dup2(devnull, sys.stdout.fileno())
|
/linux/scripts/ |
H A D | diffconfig | 139 os.dup2(devnull, sys.stdout.fileno())
|
H A D | checkkconfigsymbols.py | 477 os.dup2(devnull, sys.stdout.fileno())
|
H A D | spdxcheck.py | 384 stdin = os.fdopen(sys.stdin.fileno(), 'rb')
|
H A D | unifdef.c | 332 fstat(fileno(input), &ist) == 0) in main()
|
/linux/tools/testing/selftests/hid/tests/ |
H A D | base_device.py | 144 cls._pyudev_monitor.fileno(), cls._cls_udev_event_callback 258 fd = self.libevdev.fd.fileno()
|
/linux/tools/testing/selftests/wireguard/qemu/ |
H A D | init.c | 137 if (fcntl(fileno(file), F_SETFL, O_NONBLOCK) < 0) in kmod_selftests()
|
/linux/tools/perf/scripts/python/ |
H A D | flamegraph.py | 206 with io.open(sys.stdout.fileno(), "w", encoding="utf-8", closefd=False) as out:
|
/linux/tools/testing/selftests/kvm/lib/ |
H A D | test_util.c | 405 TEST_ASSERT(!fstat(fileno(fp), &st), "failed to stat clocksource file, errno: %d", in sys_get_cur_clocksource()
|
/linux/tools/testing/selftests/net/ |
H A D | nettest.c | 1275 nfds = interactive ? MAX(fileno(stdin), sd) + 1 : sd + 1; in msg_loop() 1280 FD_SET(fileno(stdin), &rfds); in msg_loop() 1308 if (FD_ISSET(fileno(stdin), &rfds)) { in msg_loop()
|
/linux/drivers/scsi/aic7xxx/aicasm/ |
H A D | aicasm.c | 589 if (isatty(fileno(stdin)) == 0) in output_listing()
|
/linux/tools/tracing/latency/ |
H A D | latency-collector.c | 315 fd_stdout = fileno(stdout); in open_stdout() 317 err(EXIT_FAILURE, "fileno() failed"); in open_stdout()
|
/linux/scripts/mod/ |
H A D | modpost.c | 2001 if (fstat(fileno(file), &st) < 0) in write_if_changed()
|