Home
last modified time | relevance | path

Searched refs:devpath_a (Results 1 – 1 of 1) sorted by relevance

/systemd-251/src/libsystemd/sd-device/
Ddevice-enumerator.c276 static int sound_device_compare(const char *devpath_a, const char *devpath_b) { in sound_device_compare() argument
280 assert(devpath_a); in sound_device_compare()
289 sound_a = strstr(devpath_a, "/sound/card"); in sound_device_compare()
294 sound_a = strchr(devpath_a, '/'); in sound_device_compare()
298 prefix_len = sound_a - devpath_a; in sound_device_compare()
300 if (!strneq(devpath_a, devpath_b, prefix_len)) in sound_device_compare()
316 const char *devpath_a, *devpath_b; in device_compare() local
324 assert_se(sd_device_get_devpath(*(sd_device**) a, &devpath_a) >= 0); in device_compare()
327 r = sound_device_compare(devpath_a, devpath_b); in device_compare()
332 r = CMP(devpath_is_late_block(devpath_a), devpath_is_late_block(devpath_b)); in device_compare()
[all …]