Searched refs:sysfs_fd (Results 1 – 1 of 1) sorted by relevance
80 unique_fd sysfs_fd(open(sysfs_device.c_str(), O_RDWR | O_CLOEXEC)); in configureReadAhead() local81 if (sysfs_fd.get() == -1) { in configureReadAhead()86 write(sysfs_fd.get(), kReadAheadKb, strlen(kReadAheadKb) + 1)); in configureReadAhead()171 unique_fd sysfs_fd; in createLoopDevice() local173 sysfs_fd.reset(open(device.c_str(), O_RDWR | O_CLOEXEC)); in createLoopDevice()174 if (sysfs_fd.get() != -1) { in createLoopDevice()181 if (sysfs_fd.get() == -1) { in createLoopDevice()184 device_fd = LoopbackDeviceUniqueFd(std::move(sysfs_fd), device); in createLoopDevice()