Home
last modified time | relevance | path

Searched refs:share_fd (Results 1 – 5 of 5) sorted by relevance

/system/core/libion/
Dion.c121 int ion_share(int fd, ion_user_handle_t handle, int *share_fd) in ion_share() argument
128 if (share_fd == NULL) in ion_share()
138 *share_fd = data.fd; in ion_share()
155 int ion_import(int fd, int share_fd, ion_user_handle_t *handle) in ion_import() argument
159 .fd = share_fd, in ion_import()
Dion_test.c136 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/
Dinvalid_values_test.cpp143 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()
Dformerly_valid_handle_test.cpp60 int share_fd; in TEST_F() local
62 ASSERT_EQ(-EINVAL, ion_share(m_ionFd, m_handle, &share_fd)); in TEST_F()
/system/core/libion/include/ion/
Dion.h41 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);