Searched defs:share_fd (Results 1 - 4 of 4) sorted by relevance
/system/core/libion/tests/ |
H A D | formerly_valid_handle_test.cpp | 60 int share_fd; local 62 ASSERT_EQ(-EINVAL, ion_share(m_ionFd, m_handle, &share_fd));
|
H A D | invalid_values_test.cpp | 143 int share_fd; local 146 int ret = ion_share(0, m_validHandle, &share_fd); 149 EXPECT_EQ(-EBADF, ion_share(-1, m_validHandle, &share_fd)); 151 EXPECT_EQ(-EINVAL, ion_share(m_ionFd, 0, &share_fd)); 153 EXPECT_EQ(-EINVAL, ion_share(m_ionFd, m_badHandle, &share_fd)); 154 /* NULL share_fd */ 167 /* bad share_fd */ 169 /* invalid share_fd */ 182 /* bad share_fd */ 184 /* invalid share_fd */ [all...] |
/system/core/libion/ |
H A D | ion.c | 122 int ion_share(int fd, ion_user_handle_t handle, int *share_fd) argument 129 if (share_fd == NULL) 139 *share_fd = data.fd; 156 int ion_import(int fd, int share_fd, ion_user_handle_t *handle) argument 160 .fd = share_fd,
|
H A D | ion_test.c | 136 int fd, share_fd, ret; local 141 ret = ion_share(fd, handle, &share_fd); 144 ptr = mmap(NULL, len, prot, map_flags, share_fd, 0); 153 *(int *)CMSG_DATA(cmsg) = share_fd;
|
Completed in 1384 milliseconds