Home
last modified time | relevance | path

Searched refs:in_fd (Results 1 – 11 of 11) sorted by relevance

/linux-4.1.27/init/
Ddo_mounts_rd.c45 static int __init crd_load(int in_fd, int out_fd, decompress_fn deco);
188 int in_fd, out_fd; in rd_load_image() local
202 in_fd = sys_open(from, O_RDONLY, 0); in rd_load_image()
203 if (in_fd < 0) in rd_load_image()
206 nblocks = identify_ramdisk_image(in_fd, rd_image_start, &decompressor); in rd_load_image()
211 if (crd_load(in_fd, out_fd, decompressor) == 0) in rd_load_image()
241 if (sys_ioctl(in_fd, BLKGETSIZE, (unsigned long)&devblocks) < 0) in rd_load_image()
266 if (sys_close(in_fd)) { in rd_load_image()
271 in_fd = sys_open(from, O_RDONLY, 0); in rd_load_image()
272 if (in_fd < 0) { in rd_load_image()
[all …]
/linux-4.1.27/arch/powerpc/boot/
Dmktree.c43 int in_fd, out_fd; in main() local
81 if ((in_fd = open(argv[1], O_RDONLY)) < 0) { in main()
98 if (read(in_fd, tmpbuf, sizeof(tmpbuf)) != sizeof(tmpbuf)) { in main()
109 if (lseek(in_fd, (64 * 1024), SEEK_SET) < 0) { in main()
124 if (read(in_fd, tmpbuf, sizeof(tmpbuf)) < 0) { in main()
/linux-4.1.27/tools/virtio/virtio-trace/
Dtrace-agent-rw.c33 rw_ti->in_fd = -1; in rw_thread_info_new()
51 rw_ti->in_fd = open(in_path, O_RDONLY); in rw_thread_init()
52 if (rw_ti->in_fd == -1) { in rw_thread_init()
129 rlen = splice(ts->in_fd, NULL, ts->read_pipe, NULL, in rw_thread_main()
Dtrace-agent.h36 int in_fd; member
Dtrace-agent.c249 close(s->rw_ti[i]->in_fd); in agent_info_free()
/linux-4.1.27/fs/
Dread_write.c1155 static ssize_t do_sendfile(int out_fd, int in_fd, loff_t *ppos, in do_sendfile() argument
1169 in = fdget(in_fd); in do_sendfile()
1255 SYSCALL_DEFINE4(sendfile, int, out_fd, int, in_fd, off_t __user *, offset, size_t, count) in SYSCALL_DEFINE4() argument
1265 ret = do_sendfile(out_fd, in_fd, &pos, count, MAX_NON_LFS); in SYSCALL_DEFINE4()
1271 return do_sendfile(out_fd, in_fd, NULL, count, 0); in SYSCALL_DEFINE4()
1274 SYSCALL_DEFINE4(sendfile64, int, out_fd, int, in_fd, loff_t __user *, offset, size_t, count) in SYSCALL_DEFINE4() argument
1282 ret = do_sendfile(out_fd, in_fd, &pos, count, 0); in SYSCALL_DEFINE4()
1288 return do_sendfile(out_fd, in_fd, NULL, count, 0); in SYSCALL_DEFINE4()
1292 COMPAT_SYSCALL_DEFINE4(sendfile, int, out_fd, int, in_fd, in COMPAT_SYSCALL_DEFINE4() argument
1303 ret = do_sendfile(out_fd, in_fd, &pos, count, MAX_NON_LFS); in COMPAT_SYSCALL_DEFINE4()
[all …]
/linux-4.1.27/arch/um/drivers/
Dharddog_user.c106 void stop_watchdog(int in_fd, int out_fd) in stop_watchdog() argument
108 close(in_fd); in stop_watchdog()
Dharddog_kern.c95 extern void stop_watchdog(int in_fd, int out_fd);
/linux-4.1.27/tools/testing/selftests/exec/
Dexecveat.c139 int in_fd = open_or_die(src, O_RDONLY); in exe_cp() local
143 fstat(in_fd, &info); in exe_cp()
144 sendfile(out_fd, in_fd, NULL, info.st_size); in exe_cp()
145 close(in_fd); in exe_cp()
/linux-4.1.27/include/linux/
Dcompat.h685 asmlinkage long compat_sys_sendfile(int out_fd, int in_fd,
687 asmlinkage long compat_sys_sendfile64(int out_fd, int in_fd,
Dsyscalls.h510 asmlinkage long sys_sendfile(int out_fd, int in_fd,
512 asmlinkage long sys_sendfile64(int out_fd, int in_fd,