goto fail;
}
size = (uint64_t)-1;
/* So, it's a block device. Let's make sure the ioctls work */
if (ioctl(f, BLKGETSIZE64, &size) < 0) {
goto fail;
}
size = (uint64_t)-1;
/* So, it's a block device. Let's make sure the ioctls work */
if (ioctl(f, BLKGETSIZE64, &size) < 0) {
if (!sk_disk_open(*tmp, &disk)) {
id = malloc(strlen(PROVIDER_NAME)
if (!sk_disk_open(*tmp, &disk)) {
id = malloc(strlen(PROVIDER_NAME)
if (!ret) {
c = (kelvin - 273150) / 1000;
psensor_set_current_value(s, c);
if (!ret) {
c = (kelvin - 273150) / 1000;
psensor_set_current_value(s, c);