Home
last modified time | relevance | path

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

/Linux-v4.19/init/
Ddo_mounts_rd.c36 static int __init crd_load(int in_fd, int out_fd, decompress_fn deco);
179 int in_fd, out_fd; in rd_load_image() local
189 out_fd = ksys_open("/dev/ram", O_RDWR, 0); in rd_load_image()
190 if (out_fd < 0) in rd_load_image()
202 if (crd_load(in_fd, out_fd, decompressor) == 0) in rd_load_image()
211 if (ksys_ioctl(out_fd, BLKGETSIZE, (unsigned long)&rd_blocks) < 0) in rd_load_image()
263 ksys_write(out_fd, buf, BLOCK_SIZE); in rd_load_image()
278 ksys_close(out_fd); in rd_load_image()
329 static int __init crd_load(int in_fd, int out_fd, decompress_fn deco) in crd_load() argument
333 crd_outfd = out_fd; in crd_load()
/Linux-v4.19/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()
/Linux-v4.19/tools/virtio/virtio-trace/
Dtrace-agent-rw.c34 rw_ti->out_fd = -1; in rw_thread_info_new()
60 rw_ti->out_fd = open(out_path, O_WRONLY); in rw_thread_init()
61 if (rw_ti->out_fd == -1) { in rw_thread_init()
67 rw_ti->out_fd = STDOUT_FILENO; in rw_thread_init()
150 ret = splice(ts->write_pipe, NULL, ts->out_fd, NULL, in rw_thread_main()
Dtrace-agent.h38 int out_fd; member
Dtrace-agent.c250 close(s->rw_ti[i]->out_fd); in agent_info_free()
/Linux-v4.19/tools/spi/
Dspidev_test.c119 int out_fd; in transfer() local
152 out_fd = open(output_file, O_WRONLY | O_CREAT | O_TRUNC, 0666); in transfer()
153 if (out_fd < 0) in transfer()
156 ret = write(out_fd, rx, len); in transfer()
160 close(out_fd); in transfer()
/Linux-v4.19/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);
/Linux-v4.19/tools/testing/selftests/exec/
Dexecveat.c142 int out_fd = open(dest, O_RDWR|O_CREAT|O_TRUNC, 0755); in exe_cp() local
146 sendfile(out_fd, in_fd, NULL, info.st_size); in exe_cp()
148 close(out_fd); in exe_cp()
/Linux-v4.19/fs/
Dread_write.c1368 static ssize_t do_sendfile(int out_fd, int in_fd, loff_t *ppos, in do_sendfile() argument
1405 out = fdget(out_fd); in do_sendfile()
1468 SYSCALL_DEFINE4(sendfile, int, out_fd, int, in_fd, off_t __user *, offset, size_t, count) in SYSCALL_DEFINE4() argument
1478 ret = do_sendfile(out_fd, in_fd, &pos, count, MAX_NON_LFS); in SYSCALL_DEFINE4()
1484 return do_sendfile(out_fd, in_fd, NULL, count, 0); in SYSCALL_DEFINE4()
1487 SYSCALL_DEFINE4(sendfile64, int, out_fd, int, in_fd, loff_t __user *, offset, size_t, count) in SYSCALL_DEFINE4() argument
1495 ret = do_sendfile(out_fd, in_fd, &pos, count, 0); in SYSCALL_DEFINE4()
1501 return do_sendfile(out_fd, in_fd, NULL, count, 0); in SYSCALL_DEFINE4()
1505 COMPAT_SYSCALL_DEFINE4(sendfile, int, out_fd, int, in_fd, in COMPAT_SYSCALL_DEFINE4() argument
1516 ret = do_sendfile(out_fd, in_fd, &pos, count, MAX_NON_LFS); in COMPAT_SYSCALL_DEFINE4()
[all …]
/Linux-v4.19/include/linux/
Dcompat.h636 asmlinkage long compat_sys_sendfile(int out_fd, int in_fd,
638 asmlinkage long compat_sys_sendfile64(int out_fd, int in_fd,
Dsyscalls.h464 asmlinkage long sys_sendfile64(int out_fd, int in_fd,
975 asmlinkage long sys_sendfile(int out_fd, int in_fd,
/Linux-v4.19/net/
Dsocket.c1588 goto out_fd; in __sys_accept4()
1592 goto out_fd; in __sys_accept4()
1599 goto out_fd; in __sys_accept4()
1604 goto out_fd; in __sys_accept4()
1616 out_fd: in __sys_accept4()