Searched refs:sysfs_fd (Results 1 – 1 of 1) sorted by relevance
92 unique_fd sysfs_fd(open(sysfs_device.c_str(), O_RDWR | O_CLOEXEC)); in configureReadAhead() local93 if (sysfs_fd.get() == -1) { in configureReadAhead()98 write(sysfs_fd.get(), kReadAheadKb, strlen(kReadAheadKb) + 1)); in configureReadAhead()252 unique_fd sysfs_fd; in createLoopDevice() local254 sysfs_fd.reset(open(device.c_str(), O_RDWR | O_CLOEXEC)); in createLoopDevice()255 if (sysfs_fd.get() != -1) { in createLoopDevice()262 if (sysfs_fd.get() == -1) { in createLoopDevice()265 device_fd = LoopbackDeviceUniqueFd(std::move(sysfs_fd), device); in createLoopDevice()