#include "strxcpyx.h"
#include "udev-builtin.h"
#include "udev-event.h"
+#include "udev-netlink.h"
#include "udev-node.h"
#include "udev-util.h"
#include "udev-watch.h"
/* try to read the attribute the device */
if (!val)
- (void) sd_device_get_sysattr_value(dev, attr, &val);
+ (void) device_get_sysattr_value_maybe_from_netlink(dev, &event->rtnl, attr, &val);
/* try to read the attribute of the parent device, other matches have selected */
if (!val && event->dev_parent && event->dev_parent != dev)
- (void) sd_device_get_sysattr_value(event->dev_parent, attr, &val);
+ (void) device_get_sysattr_value_maybe_from_netlink(event->dev_parent, &event->rtnl, attr, &val);
if (!val)
goto null_terminate;
#include "syslog-util.h"
#include "udev-builtin.h"
#include "udev-event.h"
+#include "udev-netlink.h"
#include "udev-rules.h"
#include "udev-util.h"
#include "user-util.h"
name = nbuf;
_fallthrough_;
case SUBST_TYPE_PLAIN:
- if (sd_device_get_sysattr_value(dev, name, &value) < 0)
+ if (device_get_sysattr_value_maybe_from_netlink(dev, &event->rtnl, name, &value) < 0)
return false;
break;
case SUBST_TYPE_SUBSYS: