Lines Matching defs:fd
119 android::base::unique_fd fd( in __has_memfd_support() local
179 …android::base::unique_fd fd(TEMP_FAILURE_RETRY(open(ashmem_device_path.c_str(), O_RDWR | O_CLOEXEC… in __ashmem_open_locked() local
200 int fd = __ashmem_open_locked(); in __ashmem_open() local
206 static int __ashmem_is_ashmem(int fd, bool fatal) { in __ashmem_is_ashmem()
219 int fd = __ashmem_open_locked(); in __ashmem_is_ashmem() local
253 static int __ashmem_check_failure(int fd, int result) { in __ashmem_check_failure()
258 static bool is_ashmem_fd(int fd) { in is_ashmem_fd()
273 static bool is_memfd_fd(int fd) { in is_memfd_fd()
277 int ashmem_valid(int fd) { in ashmem_valid()
288 android::base::unique_fd fd(syscall(__NR_memfd_create, name, MFD_CLOEXEC | MFD_ALLOW_SEALING)); in memfd_create_region() local
326 android::base::unique_fd fd(__ashmem_open()); in ashmem_create_region() local
335 static int memfd_set_prot_region(int fd, int prot) { in memfd_set_prot_region()
364 int ashmem_set_prot_region(int fd, int prot) { in ashmem_set_prot_region()
372 static int do_pin(int op, int fd, size_t offset, size_t length) { in do_pin()
388 int ashmem_pin_region(int fd, size_t offset, size_t length) { in ashmem_pin_region()
392 int ashmem_unpin_region(int fd, size_t offset, size_t length) { in ashmem_unpin_region()
396 int ashmem_get_size_region(int fd) { in ashmem_get_size_region()