Searched refs:iovs (Results 1 – 2 of 2) sorted by relevance
/system/core/trusty/storage/proxy/ |
D | ipc.c | 70 struct iovec iovs[2] = {{msg, sizeof(*msg)}, {req_buf, req_buf_len}}; in ipc_get_msg() local 74 rc = readv(tipc_fd, iovs, 2); in ipc_get_msg() 99 struct iovec iovs[2] = {{msg, sizeof(*msg)}, {out, out_size}}; in ipc_respond() local 105 rc = writev(tipc_fd, iovs, out ? 2 : 1); in ipc_respond()
|
/system/core/trusty/libtrusty/tipc-test/ |
D | tipc_test.c | 707 struct iovec iovs[2]= {{tx0_buf, 0}, {tx1_buf, 0}}; in writev_test() local 727 iovs[0].iov_len = msg_len / 3; in writev_test() 728 iovs[1].iov_len = msg_len - iovs[0].iov_len; in writev_test() 730 memset(tx0_buf, i + 1, iovs[0].iov_len); in writev_test() 731 memset(tx1_buf, i + 2, iovs[1].iov_len); in writev_test() 734 rc = writev(echo_fd, iovs, 2); in writev_test() 760 if (memcmp(tx0_buf, rx_buf, iovs[0].iov_len)) { in writev_test() 765 if (memcmp(tx1_buf, rx_buf + iovs[0].iov_len, iovs[1].iov_len)) { in writev_test() 789 struct iovec iovs[2]= {{rx0_buf, 0}, {rx1_buf, 0}}; in readv_test() local 809 iovs[0].iov_len = msg_len / 3; in readv_test() [all …]
|