Searched defs:sysfs (Results 1 - 7 of 7) sorted by relevance
/systemd/src/login/ |
H A D | logind-device.h | 31 char *sysfs; member in struct:Device 41 Device* device_new(Manager *m, const char *sysfs, bool master);
|
H A D | logind-device.c | 26 Device* device_new(Manager *m, const char *sysfs, bool master) { argument 30 assert(sysfs); 36 d->sysfs = strdup(sysfs); 37 if (!d->sysfs) { 42 if (hashmap_put(m->devices, d->sysfs, d) < 0) { 43 free(d->sysfs); 82 hashmap_remove(d->manager->devices, d->sysfs); 84 free(d->sysfs);
|
H A D | sysfs-show.c | 29 #include "sysfs-show.h" 50 const char *sn, *name, *sysfs, *subsystem, *sysname; local 54 sysfs = udev_list_entry_get_name(*item); 55 if (!path_startswith(sysfs, sub)) 58 d = udev_device_new_from_syspath(udev, sysfs); 90 !path_startswith(lookahead_sysfs, sysfs)) { 109 k = ellipsize(sysfs, n_columns, 20); 137 show_sysfs_one(udev, seat, item, sysfs, p, n_columns - 2);
|
H A D | logind-core.c | 37 int manager_add_device(Manager *m, const char *sysfs, bool master, Device **_device) { argument 41 assert(sysfs); 43 d = hashmap_get(m->devices, sysfs); 48 d = device_new(m, sysfs, master); 499 * the sysfs name, as the second dash seperated item
|
H A D | logind-dbus.c | 1201 static int attach_device(Manager *m, const char *seat, const char *sysfs) { argument 1209 assert(sysfs); 1211 d = udev_device_new_from_syspath(m->udev, sysfs); 1268 const char *sysfs, *seat; local 1275 r = sd_bus_message_read(message, "ssb", &seat, &sysfs, &interactive); 1279 if (!path_startswith(sysfs, "/sys")) 1280 return sd_bus_error_setf(error, SD_BUS_ERROR_INVALID_ARGS, "Path %s is not in /sys", sysfs); 1299 r = attach_device(m, seat, sysfs);
|
/systemd/src/core/ |
H A D | device.h | 34 char *sysfs; member in struct:Device 39 devices for the same sysfs path. We chain them up here. */
|
H A D | device.c | 52 if (!d->sysfs) 56 * same sysfs path. */ 58 first = hashmap_get(devices, d->sysfs); 62 hashmap_remove_and_replace(devices, d->sysfs, first->sysfs, first); 64 hashmap_remove(devices, d->sysfs); 66 d->sysfs = mfree(d->sysfs); 69 static int device_set_sysfs(Device *d, const char *sysfs) { argument 76 if (streq_ptr(d->sysfs, sysf 296 const char *sysfs = NULL; local 379 const char *sysfs, *dn, *alias; local 484 device_update_found_by_sysfs(Manager *m, const char *sysfs, bool add, DeviceFound found, bool now) argument 676 const char *sysfs; local 703 const char *action, *sysfs; local [all...] |
Completed in 48 milliseconds