Home
last modified time | relevance | path

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

/openbmc/linux/arch/powerpc/boot/
H A Dmktree.c44 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()
/openbmc/linux/tools/virtio/virtio-trace/
H A Dtrace-agent-rw.c31 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()
H A Dtrace-agent.h37 int in_fd; member
H A Dtrace-agent.c251 close(s->rw_ti[i]->in_fd); in agent_info_free()
/openbmc/linux/tools/tracing/rtla/src/
H A Dtrace.c75 int out_fd, in_fd; in save_trace_to_file() local
78 in_fd = tracefs_instance_file_open(inst, file, O_RDONLY); in save_trace_to_file()
79 if (in_fd < 0) { in save_trace_to_file()
91 retval = read(in_fd, buffer, sizeof(buffer)); in save_trace_to_file()
104 close(in_fd); in save_trace_to_file()
/openbmc/linux/arch/um/drivers/
H A Dharddog_user.c107 void stop_watchdog(int in_fd, int out_fd) in stop_watchdog() argument
109 close(in_fd); in stop_watchdog()
H A Dharddog.h6 void stop_watchdog(int in_fd, int out_fd);
/openbmc/linux/tools/testing/selftests/exec/
H A Dexecveat.c142 int in_fd = open_or_die(src, O_RDONLY); in exe_cp() local
146 fstat(in_fd, &info); in exe_cp()
147 sendfile(out_fd, in_fd, NULL, info.st_size); in exe_cp()
148 close(in_fd); in exe_cp()
/openbmc/phosphor-ipmi-flash/internal/
H A Dsys.cpp112 ssize_t SysImpl::sendfile(int out_fd, int in_fd, off_t* offset, in sendfile() argument
115 return ::sendfile(out_fd, in_fd, offset, count); in sendfile()
H A Dsys.hpp51 virtual ssize_t sendfile(int out_fd, int in_fd, off_t* offset,
86 ssize_t sendfile(int out_fd, int in_fd, off_t* offset,
/openbmc/linux/fs/
H A Dread_write.c1180 static ssize_t do_sendfile(int out_fd, int in_fd, loff_t *ppos, in do_sendfile() argument
1195 in = fdget(in_fd); in do_sendfile()
1289 SYSCALL_DEFINE4(sendfile, int, out_fd, int, in_fd, off_t __user *, offset, size_t, count) in SYSCALL_DEFINE4() argument
1299 ret = do_sendfile(out_fd, in_fd, &pos, count, MAX_NON_LFS); in SYSCALL_DEFINE4()
1305 return do_sendfile(out_fd, in_fd, NULL, count, 0); in SYSCALL_DEFINE4()
1308 SYSCALL_DEFINE4(sendfile64, int, out_fd, int, in_fd, loff_t __user *, offset, size_t, count) in SYSCALL_DEFINE4() argument
1316 ret = do_sendfile(out_fd, in_fd, &pos, count, 0); in SYSCALL_DEFINE4()
1322 return do_sendfile(out_fd, in_fd, NULL, count, 0); in SYSCALL_DEFINE4()
1326 COMPAT_SYSCALL_DEFINE4(sendfile, int, out_fd, int, in_fd, in COMPAT_SYSCALL_DEFINE4() argument
1337 ret = do_sendfile(out_fd, in_fd, &pos, count, MAX_NON_LFS); in COMPAT_SYSCALL_DEFINE4()
[all …]
/openbmc/qemu/qga/
H A Dcommands.c421 gint in_fd, out_fd, err_fd; in qmp_guest_exec() local
474 guest_exec_task_setup, &has_merge, &pid, input_data ? &in_fd : NULL, in qmp_guest_exec()
493 in_ch = g_io_channel_win32_new_fd(in_fd); in qmp_guest_exec()
495 in_ch = g_io_channel_unix_new(in_fd); in qmp_guest_exec()
/openbmc/linux/include/linux/
H A Dcompat.h638 asmlinkage long compat_sys_sendfile(int out_fd, int in_fd,
640 asmlinkage long compat_sys_sendfile64(int out_fd, int in_fd,
H A Dsyscalls.h471 asmlinkage long sys_sendfile64(int out_fd, int in_fd,
1014 asmlinkage long sys_sendfile(int out_fd, int in_fd,
/openbmc/qemu/block/
H A Dfile-posix.c2006 static off_t copy_file_range(int in_fd, off_t *in_off, int out_fd, in copy_file_range() argument
2010 return syscall(__NR_copy_file_range, in_fd, in_off, out_fd, in copy_file_range()