Searched defs:sysfs (Results 1 - 7 of 7) sorted by relevance

/systemd/src/login/
H A Dlogind-device.h31 char *sysfs; member in struct:Device
41 Device* device_new(Manager *m, const char *sysfs, bool master);
H A Dlogind-device.c26 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 Dsysfs-show.c29 #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 Dlogind-core.c37 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 Dlogind-dbus.c1201 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 Ddevice.h34 char *sysfs; member in struct:Device
39 devices for the same sysfs path. We chain them up here. */
H A Ddevice.c52 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 33 milliseconds