/Linux-v5.4/init/ |
D | do_mounts_rd.c | 36 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 193 in_fd = ksys_open(from, O_RDONLY, 0); in rd_load_image() 194 if (in_fd < 0) in rd_load_image() 197 nblocks = identify_ramdisk_image(in_fd, rd_image_start, &decompressor); in rd_load_image() 202 if (crd_load(in_fd, out_fd, decompressor) == 0) in rd_load_image() 225 if (ksys_ioctl(in_fd, BLKGETSIZE, (unsigned long)&devblocks) < 0) in rd_load_image() 250 if (ksys_close(in_fd)) { in rd_load_image() 255 in_fd = ksys_open(from, O_RDONLY, 0); in rd_load_image() 256 if (in_fd < 0) { in rd_load_image() [all …]
|
/Linux-v5.4/arch/powerpc/boot/ |
D | mktree.c | 44 int in_fd, out_fd; in main() local 82 if ((in_fd = open(argv[1], O_RDONLY)) < 0) { in main() 99 if (read(in_fd, tmpbuf, sizeof(tmpbuf)) != sizeof(tmpbuf)) { in main() 110 if (lseek(in_fd, (64 * 1024), SEEK_SET) < 0) { in main() 125 if (read(in_fd, tmpbuf, sizeof(tmpbuf)) < 0) { in main()
|
/Linux-v5.4/tools/virtio/virtio-trace/ |
D | trace-agent-rw.c | 31 rw_ti->in_fd = -1; in rw_thread_info_new() 49 rw_ti->in_fd = open(in_path, O_RDONLY); in rw_thread_init() 50 if (rw_ti->in_fd == -1) { in rw_thread_init() 127 rlen = splice(ts->in_fd, NULL, ts->read_pipe, NULL, in rw_thread_main()
|
D | trace-agent.h | 37 int in_fd; member
|
D | trace-agent.c | 247 close(s->rw_ti[i]->in_fd); in agent_info_free()
|
/Linux-v5.4/arch/um/drivers/ |
D | harddog_user.c | 106 void stop_watchdog(int in_fd, int out_fd) in stop_watchdog() argument 108 close(in_fd); in stop_watchdog()
|
D | harddog_kern.c | 95 extern void stop_watchdog(int in_fd, int out_fd);
|
/Linux-v5.4/tools/testing/selftests/exec/ |
D | execveat.c | 140 int in_fd = open_or_die(src, O_RDONLY); in exe_cp() local 144 fstat(in_fd, &info); in exe_cp() 145 sendfile(out_fd, in_fd, NULL, info.st_size); in exe_cp() 146 close(in_fd); in exe_cp()
|
/Linux-v5.4/fs/ |
D | read_write.c | 1393 static ssize_t do_sendfile(int out_fd, int in_fd, loff_t *ppos, in do_sendfile() argument 1407 in = fdget(in_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/ |
D | compat.h | 608 asmlinkage long compat_sys_sendfile(int out_fd, int in_fd, 610 asmlinkage long compat_sys_sendfile64(int out_fd, int in_fd,
|
D | syscalls.h | 482 asmlinkage long sys_sendfile64(int out_fd, int in_fd, 1067 asmlinkage long sys_sendfile(int out_fd, int in_fd,
|