Home
last modified time | relevance | path

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

/linux-6.3-rc2/arch/powerpc/boot/
A 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()
/linux-6.3-rc2/tools/virtio/virtio-trace/
A 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()
A Dtrace-agent.h38 int out_fd; member
A Dtrace-agent.c248 close(s->rw_ti[i]->out_fd); in agent_info_free()
/linux-6.3-rc2/tools/tracing/rtla/src/
A Dtrace.c75 int out_fd, in_fd; in save_trace_to_file() local
84 out_fd = creat(filename, mode); in save_trace_to_file()
85 if (out_fd < 0) { in save_trace_to_file()
95 retval = write(out_fd, buffer, retval); in save_trace_to_file()
102 close(out_fd); in save_trace_to_file()
312 int retval, index, out_fd; in trace_event_save_hist() local
333 out_fd = creat(path, mode); in trace_event_save_hist()
334 if (out_fd < 0) { in trace_event_save_hist()
347 index += write(out_fd, &hist[index], strlen(hist) - index); in trace_event_save_hist()
352 close(out_fd); in trace_event_save_hist()
/linux-6.3-rc2/tools/spi/
A 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()
/linux-6.3-rc2/arch/um/drivers/
A Dharddog_user.c106 void stop_watchdog(int in_fd, int out_fd) in stop_watchdog() argument
109 close(out_fd); in stop_watchdog()
A Dharddog_kern.c95 extern void stop_watchdog(int in_fd, int out_fd);
/linux-6.3-rc2/fs/
A Dread_write.c1219 out = fdget(out_fd); in do_sendfile()
1300 ret = do_sendfile(out_fd, in_fd, &pos, count, MAX_NON_LFS); in SYSCALL_DEFINE4()
1306 return do_sendfile(out_fd, in_fd, NULL, count, 0); in SYSCALL_DEFINE4()
1317 ret = do_sendfile(out_fd, in_fd, &pos, count, 0); in SYSCALL_DEFINE4()
1323 return do_sendfile(out_fd, in_fd, NULL, count, 0); in SYSCALL_DEFINE4()
1327 COMPAT_SYSCALL_DEFINE4(sendfile, int, out_fd, int, in_fd, in COMPAT_SYSCALL_DEFINE4() argument
1338 ret = do_sendfile(out_fd, in_fd, &pos, count, MAX_NON_LFS); in COMPAT_SYSCALL_DEFINE4()
1344 return do_sendfile(out_fd, in_fd, NULL, count, 0); in COMPAT_SYSCALL_DEFINE4()
1347 COMPAT_SYSCALL_DEFINE4(sendfile64, int, out_fd, int, in_fd, in COMPAT_SYSCALL_DEFINE4() argument
1356 ret = do_sendfile(out_fd, in_fd, &pos, count, 0); in COMPAT_SYSCALL_DEFINE4()
[all …]
/linux-6.3-rc2/tools/testing/selftests/exec/
A 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()
/linux-6.3-rc2/include/linux/
A Dcompat.h654 asmlinkage long compat_sys_sendfile(int out_fd, int in_fd,
656 asmlinkage long compat_sys_sendfile64(int out_fd, int in_fd,
A Dsyscalls.h520 asmlinkage long sys_sendfile64(int out_fd, int in_fd,
1125 asmlinkage long sys_sendfile(int out_fd, int in_fd,
/linux-6.3-rc2/net/
A Dsocket.c1879 goto out_fd; in do_accept()
1884 goto out_fd; in do_accept()
1891 goto out_fd; in do_accept()
1896 goto out_fd; in do_accept()
1901 out_fd: in do_accept()

Completed in 30 milliseconds