Home
last modified time | relevance | path

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

/system/ulib/fs-management/
A Dfvm.cpp245 fbl::unique_fd devfd(openat(dirfd, fn, O_RDWR)); in open_partition() local
246 if (!devfd) { in open_partition()
249 if (is_partition(devfd.get(), info->guid, info->type)) { in open_partition()
250 info->out_partition = std::move(devfd); in open_partition()
/system/uapp/disk-pave/
A Ddevice-partitioner.cpp124 fbl::unique_fd devfd(openat(dirfd, filename, O_RDWR)); in OpenPartition() local
125 if (!devfd) { in OpenPartition()
129 if (info->should_filter_file(devfd)) { in OpenPartition()
133 *(info->out_partition) = std::move(devfd); in OpenPartition()
/system/utest/ethernet/
A Dethernet.cpp101 int devfd = openat(dirfd, fn, O_RDONLY); in WatchCb() local
102 if (devfd < 0) { in WatchCb()
106 zx_status_t status = fdio_get_service_handle(devfd, svc.reset_and_get_address()); in WatchCb()
/system/utest/ramdisk/
A Dramdisk.cpp280 int devfd = open(blockpath, O_RDONLY); in RamdiskTestFilesystem() local
281 ASSERT_GE(devfd, 0, "Ramdisk is not visible in /dev/class/block"); in RamdiskTestFilesystem()
282 ASSERT_EQ(close(devfd), 0); in RamdiskTestFilesystem()

Completed in 24 milliseconds