Home
last modified time | relevance | path

Searched refs:fileno (Results 1 – 25 of 25) sorted by relevance

/linux/tools/testing/selftests/net/rds/
H A Dtest.py44 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 Ddbc.py37 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 Dmap_populate.c89 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 Dgup_longterm.c273 fd = fileno(file); in run_with_tmpfile()
275 ksft_test_result_fail("fileno() failed\n");
H A Dcow.c428 fd = fileno(file); in do_test_iouring()
1618 fd = fileno(file); in run_with_tmpfile()
/linux/drivers/scsi/bfa/
H A Dbfa_cs.h42 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 Dsmi_aperf_mperf.py58 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 Dtrace_helpers.c318 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 Dtest_sockmap.c442 fp = fileno(file); in msg_loop_sendpage()
/linux/drivers/scsi/
H A Dst.c2715 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 Dtest_device_error_logs.py42 os.set_blocking(f.fileno(), False)
/linux/tools/perf/util/
H A Ddata.h74 return fileno(data->file.fptr); in perf_data__fd()
/linux/scripts/clang-tools/
H A Drun-clang-tools.py95 os.dup2(devnull, sys.stdout.fileno())
/linux/scripts/
H A Ddiffconfig139 os.dup2(devnull, sys.stdout.fileno())
H A Dcheckkconfigsymbols.py477 os.dup2(devnull, sys.stdout.fileno())
H A Dspdxcheck.py384 stdin = os.fdopen(sys.stdin.fileno(), 'rb')
H A Dunifdef.c332 fstat(fileno(input), &ist) == 0) in main()
/linux/tools/testing/selftests/hid/tests/
H A Dbase_device.py144 cls._pyudev_monitor.fileno(), cls._cls_udev_event_callback
258 fd = self.libevdev.fd.fileno()
/linux/tools/testing/selftests/wireguard/qemu/
H A Dinit.c137 if (fcntl(fileno(file), F_SETFL, O_NONBLOCK) < 0) in kmod_selftests()
/linux/tools/perf/scripts/python/
H A Dflamegraph.py206 with io.open(sys.stdout.fileno(), "w", encoding="utf-8", closefd=False) as out:
/linux/tools/testing/selftests/kvm/lib/
H A Dtest_util.c405 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 Dnettest.c1275 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 Daicasm.c589 if (isatty(fileno(stdin)) == 0) in output_listing()
/linux/tools/tracing/latency/
H A Dlatency-collector.c315 fd_stdout = fileno(stdout); in open_stdout()
317 err(EXIT_FAILURE, "fileno() failed"); in open_stdout()
/linux/scripts/mod/
H A Dmodpost.c2001 if (fstat(fileno(file), &st) < 0) in write_if_changed()