static bool device_is_mmc_special_partition(sd_device *d) {
const char *sysname;
+ assert(d);
+
if (sd_device_get_sysname(d, &sysname) < 0)
return false;
static bool device_is_block(sd_device *d) {
const char *ss;
+ assert(d);
+
if (sd_device_get_subsystem(d, &ss) < 0)
return false;
_cleanup_(sd_device_enumerator_unrefp) sd_device_enumerator *e = NULL;
int r;
+ assert(d);
+ assert(ret);
+
r = sd_device_enumerator_new(&e);
if (r < 0)
return r;
unsigned n;
int r;
+ assert(fd >= 0);
+ assert(d);
+ assert(ret_enumerator);
+
r = enumerator_for_parent(d, &e);
if (r < 0)
return r;
_cleanup_(sd_device_unrefp) sd_device *device = NULL;
int r;
+ assert(fd >= 0);
+ assert(d);
+ assert(ret_enumerator);
+
log_debug("Waiting for device (parent + %d partitions) to appear...", num_partitions);
if (!FLAGS_SET(flags, DISSECT_IMAGE_NO_UDEV)) {