Home
last modified time | relevance | path

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

12

/linux/tools/testing/selftests/drivers/net/
H A Dpsp.py24 outq = fcntl.ioctl(s.fileno(), termios.TIOCOUTQ, one)
197 "sock-fd": s.fileno()})
205 "sock-fd": s.fileno()})
218 "sock-fd": s.fileno()})
226 "sock-fd": s.fileno()})
239 "sock-fd": s.fileno()})
249 "sock-fd": s.fileno()})
253 "sock-fd": s.fileno()})
265 "sock-fd": s.fileno()})
279 "sock-fd": s.fileno()})
[all …]
/linux/tools/testing/selftests/net/rds/
H A Dtest.py49 setns(f.fileno(), 0)
58 socket.send_fds(u0, [], [sock.fileno()])
158 s.fileno(): s for s in sockets
192 send_hashes.setdefault((sender.fileno(), receiver.fileno()),
205 for fileno, eventmask in ep.poll():
206 receiver = fileno_to_socket[fileno]
213 recv_hashes.setdefault((sender.fileno(),
214 receiver.fileno()), hashlib.sha256()).update(
/linux/scripts/gdb/linux/
H A Dbpf.py195 fileno = self.filenos.get(file_name_off)
196 if fileno is not None:
197 return fileno, None
199 fileno = len(self.filenos) + 1
200 self.filenos[file_name_off] = fileno
201 return fileno, file_name
232 fileno, file_name = linfo_iter.get_fileno()
235 fileno, json.dumps(file_name)))
237 src.write(".loc {} {} {}\n".format(fileno, line, col))
/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.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.c331 fd = fileno(file); in run_with_tmpfile()
/linux/tools/testing/selftests/net/lib/py/
H A Dnetns.py44 libc.setns(ns_file.fileno(), 0)
48 libc.setns(self.saved.fileno(), 0)
/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/include/nolibc/
H A Dstdio.h87 int fileno(FILE *stream) in fileno() function
140 if (read(fileno(stream), &ch, 1) <= 0) in fgetc()
161 if (write(fileno(stream), &ch, 1) <= 0) in fputc()
182 int fd = fileno(stream); in _fwrite()
213 int fd = fileno(stream);
279 int fd = fileno(stream); in __nolibc_printf()
/linux/tools/testing/selftests/devices/error_logs/
H A Dtest_device_error_logs.py42 os.set_blocking(f.fileno(), False)
/linux/drivers/scsi/
H A Dst.c2734 int fileno, blkno, at_sm, undone; in st_int_ioctl() local
2746 fileno = STps->drv_file; in st_int_ioctl()
2762 if (fileno >= 0) in st_int_ioctl()
2763 fileno += arg; in st_int_ioctl()
2778 if (fileno >= 0) in st_int_ioctl()
2779 fileno -= arg; in st_int_ioctl()
2814 blkno = fileno = (-1); in st_int_ioctl()
2827 blkno = fileno = (-1); in st_int_ioctl()
2860 if (fileno >= 0) in st_int_ioctl()
2861 fileno += arg; in st_int_ioctl()
[all …]
/linux/tools/perf/util/
H A Ddata.h76 return file->use_stdio ? fileno(file->fptr) : file->fd; in perf_data__fd()
H A Ddebug.c329 backtrace_symbols_fd(stackdump, stackdump_size, fileno(file)); in __dump_stack()
/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())
/linux/samples/check-exec/
H A Dinc.c88 err = sys_execveat(fileno(script), "", script_argv, envp, in interpret_stream()
/linux/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/tools/testing/selftests/bpf/
H A Dtrace_helpers.c316 err = procmap_query(fileno(f), addr, PROCMAP_QUERY_VMA_EXECUTABLE, &start, &base, &flags); in get_uprobe_offset()
382 err = procmap_query(fileno(f), (const void *)addr, 0, &start, &offset, &flags); in get_rel_offset()
496 fcntl(fileno(fp), F_SETFL, O_NONBLOCK); in read_trace_pipe_iter()
/linux/tools/testing/selftests/hid/tests/
H A Dbase_device.py152 cls._pyudev_monitor.fileno(), cls._cls_udev_event_callback
267 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/testing/selftests/bpf/prog_tests/
H A Darg_parsing.c147 if (!ASSERT_OK(fsync(fileno(fp)), "fsync tmp")) in test_parse_test_list_file()
/linux/tools/perf/scripts/python/
H A Dflamegraph.py225 with io.open(sys.stdout.fileno(), "w", encoding="utf-8", closefd=False) as out:
/linux/tools/perf/
H A Dperf.c356 if (fstat(fileno(stdout), &st)) in run_builtin()

12