Home
last modified time | relevance | path

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

12

/linux-6.15/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-6.15/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-6.15/tools/testing/selftests/mm/
H A Dmap_populate.c91 ret = ftruncate(fileno(ftmp), MMAP_SZ); in main()
98 MAP_SHARED, fileno(ftmp), 0); in main()
124 return child_f(sock[0], smap, fileno(ftmp)); in main()
H A Dgup_longterm.c282 fd = fileno(file); in run_with_tmpfile()
/linux-6.15/tools/testing/selftests/net/lib/py/
H A Dnetns.py44 libc.setns(ns_file.fileno(), 0)
48 libc.setns(self.saved.fileno(), 0)
/linux-6.15/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-6.15/tools/include/nolibc/
H A Dstdio.h55 int fileno(FILE *stream) in fileno() function
108 if (read(fileno(stream), &ch, 1) <= 0) in fgetc()
129 if (write(fileno(stream), &ch, 1) <= 0) in fputc()
150 int fd = fileno(stream); in _fwrite()
/linux-6.15/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-6.15/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()
/linux-6.15/tools/testing/selftests/devices/error_logs/
H A Dtest_device_error_logs.py42 os.set_blocking(f.fileno(), False)
/linux-6.15/tools/perf/util/
H A Ddata.h74 return fileno(data->file.fptr); in perf_data__fd()
H A Dcolor.c48 if (isatty(fileno(fp)) || pager_in_use()) in __color_vfprintf()
/linux-6.15/tools/testing/selftests/drivers/net/hw/
H A Drss_input_xfrm.py20 fd_read_timeout(sock.fileno(), 5)
H A Dtso.py22 outq = fcntl.ioctl(sock.fileno(), termios.TIOCOUTQ, one)
/linux-6.15/scripts/clang-tools/
H A Drun-clang-tools.py95 os.dup2(devnull, sys.stdout.fileno())
/linux-6.15/drivers/scsi/
H A Dst.c2745 fileno = STps->drv_file; in st_int_ioctl()
2761 if (fileno >= 0) in st_int_ioctl()
2762 fileno += arg; in st_int_ioctl()
2777 if (fileno >= 0) in st_int_ioctl()
2778 fileno -= arg; in st_int_ioctl()
2859 if (fileno >= 0) in st_int_ioctl()
2860 fileno += arg; in st_int_ioctl()
2898 fileno = (-1); in st_int_ioctl()
3054 if (fileno >= 0) in st_int_ioctl()
3055 fileno -= undone; in st_int_ioctl()
[all …]
/linux-6.15/samples/check-exec/
H A Dinc.c88 err = sys_execveat(fileno(script), "", script_argv, envp, in interpret_stream()
/linux-6.15/scripts/
H A Ddiffconfig139 os.dup2(devnull, sys.stdout.fileno())
H A Dcheckkconfigsymbols.py477 os.dup2(devnull, sys.stdout.fileno())
/linux-6.15/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-6.15/tools/testing/selftests/wireguard/qemu/
H A Dinit.c137 if (fcntl(fileno(file), F_SETFL, O_NONBLOCK) < 0) in kmod_selftests()
/linux-6.15/tools/perf/scripts/python/
H A Dflamegraph.py206 with io.open(sys.stdout.fileno(), "w", encoding="utf-8", closefd=False) as out:
/linux-6.15/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-6.15/tools/perf/
H A Dperf.c360 if (fstat(fileno(stdout), &st)) in run_builtin()
/linux-6.15/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()

12