Searched refs:share_fd (Results 1 – 5 of 5) sorted by relevance
/system/core/libion/ |
D | ion.c | 122 int ion_share(int fd, ion_user_handle_t handle, int *share_fd) in ion_share() argument 129 if (share_fd == NULL) in ion_share() 139 *share_fd = data.fd; in ion_share() 156 int ion_import(int fd, int share_fd, ion_user_handle_t *handle) in ion_import() argument 160 .fd = share_fd, in ion_import()
|
D | ion_test.c | 136 int fd, share_fd, ret; in ion_share_test() local 141 ret = ion_share(fd, handle, &share_fd); in ion_share_test() 144 ptr = mmap(NULL, len, prot, map_flags, share_fd, 0); in ion_share_test() 153 *(int *)CMSG_DATA(cmsg) = share_fd; in ion_share_test()
|
/system/core/libion/tests/ |
D | formerly_valid_handle_test.cpp | 60 int share_fd; in TEST_F() local 62 ASSERT_EQ(-EINVAL, ion_share(m_ionFd, m_handle, &share_fd)); in TEST_F()
|
D | invalid_values_test.cpp | 143 int share_fd; in TEST_F() local 146 int ret = ion_share(0, m_validHandle, &share_fd); in TEST_F() 149 EXPECT_EQ(-EBADF, ion_share(-1, m_validHandle, &share_fd)); in TEST_F() 151 EXPECT_EQ(-EINVAL, ion_share(m_ionFd, 0, &share_fd)); in TEST_F() 153 EXPECT_EQ(-EINVAL, ion_share(m_ionFd, m_badHandle, &share_fd)); in TEST_F()
|
/system/core/libion/include/ion/ |
D | ion.h | 41 int ion_share(int fd, ion_user_handle_t handle, int *share_fd); 42 int ion_import(int fd, int share_fd, ion_user_handle_t *handle);
|