Lines Matching refs:dev
13 static int builtin_net_setup_link(sd_device *dev, sd_netlink **rtnl, int argc, char **argv, bool te… in builtin_net_setup_link() argument
18 … return log_device_error_errno(dev, SYNTHETIC_ERRNO(EINVAL), "This program takes no arguments."); in builtin_net_setup_link()
20 r = link_new(ctx, rtnl, dev, &link); in builtin_net_setup_link()
22 … log_device_debug_errno(dev, r, "Link vanished while getting information, ignoring."); in builtin_net_setup_link()
26 return log_device_warning_errno(dev, r, "Failed to get link information: %m"); in builtin_net_setup_link()
29 udev_builtin_add_property(dev, test, "ID_NET_DRIVER", link->driver); in builtin_net_setup_link()
34 … log_device_debug_errno(dev, r, "No matching link configuration found, ignoring device."); in builtin_net_setup_link()
38 return log_device_error_errno(dev, r, "Failed to get link config: %m"); in builtin_net_setup_link()
43 … log_device_debug_errno(dev, r, "Link vanished while applying configuration, ignoring."); in builtin_net_setup_link()
45 … log_device_warning_errno(dev, r, "Could not apply link configuration, ignoring: %m"); in builtin_net_setup_link()
47 udev_builtin_add_property(dev, test, "ID_NET_LINK_FILE", link->config->filename); in builtin_net_setup_link()
49 udev_builtin_add_property(dev, test, "ID_NET_NAME", link->new_name); in builtin_net_setup_link()