Home
last modified time | relevance | path

Searched refs:out_fd (Results 1 – 13 of 13) sorted by relevance

/kernel/linux/linux-5.10/arch/powerpc/boot/
Dmktree.c44 int in_fd, out_fd; in main() local
87 if ((out_fd = open(argv[2], (O_RDWR | O_CREAT | O_TRUNC), 0666)) < 0) { in main()
119 if (write(out_fd, &bt, sizeof(bt)) != sizeof(bt)) { in main()
132 if (write(out_fd, tmpbuf, sizeof(tmpbuf)) != sizeof(tmpbuf)) { in main()
141 if (lseek(out_fd, 0, SEEK_SET) < 0) { in main()
145 if (write(out_fd, &bt, sizeof(bt)) != sizeof(bt)) { in main()
/kernel/linux/linux-5.10/tools/virtio/virtio-trace/
Dtrace-agent-rw.c32 rw_ti->out_fd = -1; in rw_thread_info_new()
58 rw_ti->out_fd = open(out_path, O_WRONLY); in rw_thread_init()
59 if (rw_ti->out_fd == -1) { in rw_thread_init()
65 rw_ti->out_fd = STDOUT_FILENO; in rw_thread_init()
148 ret = splice(ts->write_pipe, NULL, ts->out_fd, NULL, in rw_thread_main()
Dtrace-agent.h38 int out_fd; member
Dtrace-agent.c248 close(s->rw_ti[i]->out_fd); in agent_info_free()
/kernel/linux/linux-5.10/tools/spi/
Dspidev_test.c121 int out_fd; in transfer() local
158 out_fd = open(output_file, O_WRONLY | O_CREAT | O_TRUNC, 0666); in transfer()
159 if (out_fd < 0) in transfer()
162 ret = write(out_fd, rx, len); in transfer()
166 close(out_fd); in transfer()
/kernel/linux/linux-5.10/arch/um/drivers/
Dharddog_user.c106 void stop_watchdog(int in_fd, int out_fd) in stop_watchdog() argument
109 close(out_fd); in stop_watchdog()
Dharddog_kern.c95 extern void stop_watchdog(int in_fd, int out_fd);
/kernel/linux/linux-5.10/fs/
Dread_write.c1181 static ssize_t do_sendfile(int out_fd, int in_fd, loff_t *ppos, in do_sendfile() argument
1218 out = fdget(out_fd); in do_sendfile()
1280 SYSCALL_DEFINE4(sendfile, int, out_fd, int, in_fd, off_t __user *, offset, size_t, count) in SYSCALL_DEFINE4() argument
1290 ret = do_sendfile(out_fd, in_fd, &pos, count, MAX_NON_LFS); in SYSCALL_DEFINE4()
1296 return do_sendfile(out_fd, in_fd, NULL, count, 0); in SYSCALL_DEFINE4()
1299 SYSCALL_DEFINE4(sendfile64, int, out_fd, int, in_fd, loff_t __user *, offset, size_t, count) in SYSCALL_DEFINE4() argument
1307 ret = do_sendfile(out_fd, in_fd, &pos, count, 0); in SYSCALL_DEFINE4()
1313 return do_sendfile(out_fd, in_fd, NULL, count, 0); in SYSCALL_DEFINE4()
1317 COMPAT_SYSCALL_DEFINE4(sendfile, int, out_fd, int, in_fd, in COMPAT_SYSCALL_DEFINE4() argument
1328 ret = do_sendfile(out_fd, in_fd, &pos, count, MAX_NON_LFS); in COMPAT_SYSCALL_DEFINE4()
[all …]
/kernel/liteos_m/tools/
Dmem_analysis.py92 with open("./static_symbol_out.txt", "w+") as out_fd:
93 out_fd.write("".join(target_list))
180 with open("./dynamic_memory_out.txt", "w+") as out_fd:
181 out_fd.write("".join(target_list))
/kernel/linux/linux-5.10/tools/testing/selftests/exec/
Dexecveat.c143 int out_fd = open(dest, O_RDWR|O_CREAT|O_TRUNC, 0755); in exe_cp() local
147 sendfile(out_fd, in_fd, NULL, info.st_size); in exe_cp()
149 close(out_fd); in exe_cp()
/kernel/linux/linux-5.10/include/linux/
Dcompat.h562 asmlinkage long compat_sys_sendfile(int out_fd, int in_fd,
564 asmlinkage long compat_sys_sendfile64(int out_fd, int in_fd,
Dsyscalls.h511 asmlinkage long sys_sendfile64(int out_fd, int in_fd,
1099 asmlinkage long sys_sendfile(int out_fd, int in_fd,
/kernel/linux/linux-5.10/net/
Dsocket.c1723 goto out_fd; in do_accept()
1728 goto out_fd; in do_accept()
1735 goto out_fd; in do_accept()
1740 goto out_fd; in do_accept()
1745 out_fd: in do_accept()