Lines Matching defs:rtnl
99 static int manager_process_link(sd_netlink *rtnl, sd_netlink_message *mm, void *userdata) {
106 assert(rtnl);
161 static int on_rtnl_event(sd_netlink *rtnl, sd_netlink_message *mm, void *userdata) {
165 r = manager_process_link(rtnl, mm, m);
183 r = sd_netlink_open(&m->rtnl);
187 r = sd_netlink_attach_event(m->rtnl, m->event, 0);
191 r = sd_netlink_add_match(m->rtnl, RTM_NEWLINK, on_rtnl_event, m);
195 r = sd_netlink_add_match(m->rtnl, RTM_DELLINK, on_rtnl_event, m);
200 r = sd_rtnl_message_new_link(m->rtnl, &req, RTM_GETLINK, 0);
208 r = sd_netlink_call(m->rtnl, req, 0, &reply);
213 r = manager_process_link(m->rtnl, i, m);
329 sd_netlink_unref(m->rtnl);