Searched refs:sysfs_fd (Results 1 – 1 of 1) sorted by relevance
95 unique_fd sysfs_fd(open(sysfs_device.c_str(), O_RDWR | O_CLOEXEC)); in ConfigureReadAhead() local96 if (sysfs_fd.get() == -1) { in ConfigureReadAhead()101 write(sysfs_fd.get(), kReadAheadKb, strlen(kReadAheadKb) + 1)); in ConfigureReadAhead()281 unique_fd sysfs_fd; in WaitForDevice() local288 sysfs_fd.reset(open(device.c_str(), O_RDWR | O_CLOEXEC)); in WaitForDevice()289 if (sysfs_fd.get() != -1) { in WaitForDevice()290 return LoopbackDeviceUniqueFd(std::move(sysfs_fd), device); in WaitForDevice()