Home
last modified time | relevance | path

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

/Linux-v5.4/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-v5.4/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-v5.4/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()
/Linux-v5.4/tools/spi/
Dspidev_test.c116 int out_fd; in transfer() local
149 out_fd = open(output_file, O_WRONLY | O_CREAT | O_TRUNC, 0666); in transfer()
150 if (out_fd < 0) in transfer()
153 ret = write(out_fd, rx, len); in transfer()
157 close(out_fd); in transfer()
/Linux-v5.4/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-v5.4/tools/testing/selftests/exec/
Dexecveat.c141 int out_fd = open(dest, O_RDWR|O_CREAT|O_TRUNC, 0755); in exe_cp() local
145 sendfile(out_fd, in_fd, NULL, info.st_size); in exe_cp()
147 close(out_fd); in exe_cp()
/Linux-v5.4/fs/
Dread_write.c1393 static ssize_t do_sendfile(int out_fd, int in_fd, loff_t *ppos, in do_sendfile() argument
1430 out = fdget(out_fd); in do_sendfile()
1492 SYSCALL_DEFINE4(sendfile, int, out_fd, int, in_fd, off_t __user *, offset, size_t, count) in SYSCALL_DEFINE4() argument
1502 ret = do_sendfile(out_fd, in_fd, &pos, count, MAX_NON_LFS); in SYSCALL_DEFINE4()
1508 return do_sendfile(out_fd, in_fd, NULL, count, 0); in SYSCALL_DEFINE4()
1511 SYSCALL_DEFINE4(sendfile64, int, out_fd, int, in_fd, loff_t __user *, offset, size_t, count) in SYSCALL_DEFINE4() argument
1519 ret = do_sendfile(out_fd, in_fd, &pos, count, 0); in SYSCALL_DEFINE4()
1525 return do_sendfile(out_fd, in_fd, NULL, count, 0); in SYSCALL_DEFINE4()
1529 COMPAT_SYSCALL_DEFINE4(sendfile, int, out_fd, int, in_fd, in COMPAT_SYSCALL_DEFINE4() argument
1540 ret = do_sendfile(out_fd, in_fd, &pos, count, MAX_NON_LFS); in COMPAT_SYSCALL_DEFINE4()
[all …]
/Linux-v5.4/include/linux/
Dcompat.h608 asmlinkage long compat_sys_sendfile(int out_fd, int in_fd,
610 asmlinkage long compat_sys_sendfile64(int out_fd, int in_fd,
Dsyscalls.h482 asmlinkage long sys_sendfile64(int out_fd, int in_fd,
1067 asmlinkage long sys_sendfile(int out_fd, int in_fd,
/Linux-v5.4/net/
Dsocket.c1752 goto out_fd; in __sys_accept4()
1756 goto out_fd; in __sys_accept4()
1763 goto out_fd; in __sys_accept4()
1768 goto out_fd; in __sys_accept4()
1780 out_fd: in __sys_accept4()