Home
last modified time | relevance | path

Searched refs:fd (Results 1 – 21 of 21) sorted by relevance

/trusty/user/base/lib/libc-trusty/
Dtrusty_uio.c22 ssize_t readv(int fd, const struct iovec* iov, int iov_cnt) { in readv() argument
23 ssize_t res = _trusty_readv(fd, iov, iov_cnt); in readv()
31 ssize_t read(int fd, void* buf, size_t count) { in read() argument
33 return readv(fd, &iov, 1); in read()
36 ssize_t writev(int fd, const struct iovec* iov, int iov_cnt) { in writev() argument
37 ssize_t res = _trusty_writev(fd, iov, iov_cnt); in writev()
45 ssize_t write(int fd, const void* buf, size_t count) { in write() argument
47 return writev(fd, &iov, 1); in write()
50 ssize_t trusty_readv(int fd, const struct iovec* iov, int iov_cnt) { in trusty_readv() argument
51 return _trusty_readv(fd, iov, iov_cnt); in trusty_readv()
[all …]
Dfile_stubs.c39 int isatty(int fd) { in isatty() argument
/trusty/user/base/experimental/lib/tidl/include/lib/tidl/android-base/
Dunique_fd.h65 explicit unique_fd_impl(int fd) { reset(fd); } in unique_fd_impl() argument
72 int fd = s.fd_; variable
74 reset(fd, &s);
136 static auto tag(int fd, void* old_tag, void* new_tag)
137 -> decltype(T::Tag(fd, old_tag, new_tag), void()) {
138 T::Tag(fd, old_tag, new_tag);
149 static auto close(int fd, void* tag_value)
150 -> decltype(T::Close(fd, tag_value), void()) {
151 T::Close(fd, tag_value);
155 static auto close(int fd, void*) -> decltype(T::Close(fd), void()) {
[all …]
/trusty/user/base/experimental/lib/tidl/
Dipc_ql_tipc.cpp53 int handle::reset(Handle fd) { in reset() argument
55 mFd = fd; in reset()
63 mFd = fd; in reset()
71 static __inline__ struct trusty_ipc_chan* tidl_get_channel(handle_t fd) { in tidl_get_channel() argument
72 TLOGD("looking for channel %u\n", fd); in tidl_get_channel()
75 if (fd == tidl_channels[i].handle) { in tidl_get_channel()
79 if (fd == INVALID_IPC_HANDLE) { in tidl_get_channel()
161 extern "C" int tidl_chan_close(handle_t fd) { in tidl_chan_close() argument
162 struct trusty_ipc_chan* chan = tidl_get_channel(fd); in tidl_chan_close()
164 TLOGD("tidl_chan_close fd (%u)\n", fd); in tidl_chan_close()
[all …]
/trusty/user/base/include/user/
Dtrusty_uio.h28 ssize_t trusty_readv(int fd, const struct iovec* iov, int iovcnt);
29 ssize_t trusty_read(int fd, void* buf, size_t count);
30 ssize_t trusty_writev(int fd, const struct iovec* iov, int iovcnt);
31 ssize_t trusty_write(int fd, const void* buf, size_t count);
/trusty/kernel/lib/trusty/include/lib/trusty/
Dsys_fd.h31 ssize_t (*readv)(uint32_t fd, user_addr_t iov_uaddr, uint32_t iov_cnt);
32 ssize_t (*writev)(uint32_t fd, user_addr_t iov_uaddr, uint32_t iov_cnt);
33 int32_t (*ioctl)(uint32_t fd, uint32_t cmd, user_addr_t user_ptr);
36 status_t install_sys_fd_handler(uint32_t fd, const struct sys_fd_ops* ops);
Ductx.h54 const struct sys_fd_ops* uctx_get_fd_ops(uint32_t fd);
/trusty/kernel/lib/trusty/
Dsyscall.c51 static ssize_t sys_std_writev(uint32_t fd,
66 status_t install_sys_fd_handler(uint32_t fd, const struct sys_fd_ops* ops) { in install_sys_fd_handler() argument
69 if (fd >= countof(sys_fds)) in install_sys_fd_handler()
73 if (!sys_fds[fd]) { in install_sys_fd_handler()
74 sys_fds[fd] = ops; in install_sys_fd_handler()
83 static const struct sys_fd_ops* get_sys_fd_handler(uint32_t fd) { in get_sys_fd_handler() argument
86 ops = uctx_get_fd_ops(fd); in get_sys_fd_handler()
90 if (fd >= countof(sys_fds)) in get_sys_fd_handler()
93 return sys_fds[fd]; in get_sys_fd_handler()
117 static ssize_t sys_std_writev(uint32_t fd, in sys_std_writev() argument
[all …]
Ductx.c812 static ssize_t uctx_handle_writev(uint32_t fd, in uctx_handle_writev() argument
819 rc = uctx_handle_get(ctx, (handle_id_t)fd, &h); in uctx_handle_writev()
833 static ssize_t uctx_handle_readv(uint32_t fd, in uctx_handle_readv() argument
840 rc = uctx_handle_get(ctx, (handle_id_t)fd, &h); in uctx_handle_readv()
859 const struct sys_fd_ops* uctx_get_fd_ops(uint32_t fd) { in uctx_get_fd_ops() argument
860 if (fd >= IPC_HANDLE_ID_BASE && in uctx_get_fd_ops()
861 fd < (IPC_HANDLE_ID_BASE + IPC_MAX_HANDLES)) { in uctx_get_fd_ops()
898 const struct sys_fd_ops* uctx_get_fd_ops(uint32_t fd) { in uctx_get_fd_ops() argument
/trusty/kernel/lib/libc-trusty/
Dwritev.c30 ssize_t trusty_writev(int fd, const struct iovec* iov, int iovcnt) { in trusty_writev() argument
33 io_handle_t* io_handle = fd_io_handle(fd); in trusty_writev()
Dclose.c18 int close(int fd) { in close() argument
/trusty/user/app/storage/test/storage_host_test/
Dstorageproxy_shim.c219 int fd = handle; in ns_close_file() local
220 close(fd); in ns_close_file()
224 static ssize_t write_with_retry(int fd, in write_with_retry() argument
232 rc = pwrite(fd, buf, size, offset); in write_with_retry()
242 static ssize_t read_with_retry(int fd, void* buf_, size_t size, off_t offset) { in read_with_retry() argument
248 rc = pread(fd, buf, size, offset); in read_with_retry()
/trusty/kernel/lib/trusty/include/
Dsyscall_table.h33 DEF_SYSCALL(0x1, writev, long, 3, uint32_t fd, const struct iovec *iov, uint32_t iovcnt)
36 DEF_SYSCALL(0x4, readv, long, 3, uint32_t fd, const struct iovec *iov, uint32_t iovcnt)
37 DEF_SYSCALL(0x5, ioctl, long, 3, uint32_t fd, uint32_t req, void *buf)
/trusty/kernel/lib/libc-trusty/include/trusty/
Duio.h27 ssize_t trusty_writev(int fd, const struct iovec* iov, int iovcnt);
Dio_handle.h20 io_handle_t* fd_io_handle(int fd);
/trusty/user/base/experimental/lib/tidl/include/lib/tidl/
Dtidl_ql_tipc.h41 int tidl_chan_close(handle_t fd);
Dtidl.h64 handle(Handle fd) : mFd(fd) {} in handle() argument
68 int reset(Handle fd);
/trusty/user/base/lib/tipc/rust/src/
Dhandle.rs108 pub fn from_raw(fd: i32) -> crate::Result<Self> { in from_raw()
109 if fd < 0 { in from_raw()
110 Err(TipcError::from_uapi(fd as c_long)) in from_raw()
112 Ok(Self(fd)) in from_raw()
/trusty/kernel/lib/syscall/
DREADME22 DEF_SYSCALL(0x3, read, long, 3, uint32_t fd, void* msg, uint32_t size)
23 DEF_SYSCALL(0x4, write, long, 3, uint32_t fd, void* msg, uint32_t size)
/trusty/user/base/lib/dlmalloc/
Ddlmalloc.c2194 struct malloc_chunk* fd; /* double links -- used only if free. */ member
2412 struct malloc_tree_chunk* fd; member
3175 int fd; in init_mparams() local
3178 if ((fd = open("/dev/urandom", O_RDONLY)) >= 0 && in init_mparams()
3179 read(fd, buf, sizeof(buf)) == sizeof(buf)) { in init_mparams()
3181 close(fd); in init_mparams()
3290 assert(p->fd->bk == p); in do_check_free_chunk()
3291 assert(p->bk->fd == p); in do_check_free_chunk()
3331 assert(u->fd->bk == u); in do_check_tree()
3332 assert(u->bk->fd == u); in do_check_tree()
[all …]
/trusty/vendor/google/aosp/scripts/
Dtest-map223 androidtest(name="tipc:send-fd",
225 "-t send-fd"),