diff options
author | Tom Gundersen <teg@jklm.no> | 2016-06-26 23:05:27 +0200 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2016-06-27 09:54:20 +0200 |
commit | de7e983ea13f1cb76339db9037fc5115199396d0 (patch) | |
tree | ddd4b9c869143cd24881af865a9afd7c6b232adc /src/libsystemd/sd-device/device-internal.h | |
parent | 3172836b2f9841994ed7d0daf054d4570b8dac6f (diff) |
sd-device: device_id - set correctly for 'drivers'
The 'drivers' pseudo-subsystem needs special treatment. These pseudo-devices are
found under /sys/bus/drivers/, so needs the real subsystem encoded
in the device_id in order to be resolved.
The reader side already assumed this to be the case.
Diffstat (limited to 'src/libsystemd/sd-device/device-internal.h')
-rw-r--r-- | src/libsystemd/sd-device/device-internal.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libsystemd/sd-device/device-internal.h b/src/libsystemd/sd-device/device-internal.h index ab222e27de..9fad388953 100644 --- a/src/libsystemd/sd-device/device-internal.h +++ b/src/libsystemd/sd-device/device-internal.h @@ -76,6 +76,8 @@ struct sd_device { char *subsystem; bool subsystem_set; /* don't reread subsystem */ + char *driver_subsystem; /* only set for the 'drivers' subsystem */ + bool driver_subsystem_set; /* don't reread subsystem */ char *driver; bool driver_set; /* don't reread driver */ |