Home
last modified time | relevance | path

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

/external/fio/os/
Dos-android.h85 static inline int shmctl (int __shmid, int __cmd, struct shmid_ds *__buf) in shmctl() argument
90 int length = ioctl(__shmid, ASHMEM_GET_SIZE, NULL); in shmctl()
92 ret = ioctl(__shmid, ASHMEM_UNPIN, &pin); in shmctl()
93 close(__shmid); in shmctl()
123 static inline void *shmat (int __shmid, const void *__shmaddr, int __shmflg) in shmat() argument
125 size_t *ptr, size = ioctl(__shmid, ASHMEM_GET_SIZE, NULL); in shmat()
126 ptr = mmap(NULL, size + sizeof(size_t), PROT_READ | PROT_WRITE, MAP_SHARED, __shmid, 0); in shmat()