diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2020-11-09 12:11:43 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2020-11-14 13:39:40 +0000 |
commit | cca83392f09a2a67178203d493656c4355863106 (patch) | |
tree | 752c7999e17e899030c03e0386828aad26f99ebf /src/mm-context.c | |
parent | 769ba3cee6fa7c985069165ee4ace99c356df949 (diff) |
kerneldevice,generic: implement ATTRS matching for any attribute
Until now we did not support ATTRS{} matches against attributes we
don't support in the core codebase. Implement now a simple lookup
mechanism which traverses the tree of sysfs path from the port sysfs
path to the physical device sysfs path, looking up the attribute
requested.
This is not completely equivalent to what udev does, because the udev
rules matching ATTRS would usually also include an additional previous
matching e.g. SUBSYSTEMS and such, so that the ATTRS is looked up
exactly in the device that also matches the additional previous
rules. In our case, we just simplify the logic and return the first
one found.
Diffstat (limited to 'src/mm-context.c')
0 files changed, 0 insertions, 0 deletions