Lines Matching defs:manager
99 assert(netdev->manager);
100 assert(netdev->manager->rtnl);
102 callback->callback(netdev->manager->rtnl, m, callback->link);
118 hashmap_remove(netdev->manager->netdevs, netdev->ifname);
167 int netdev_get(Manager *manager, const char *name, NetDev **ret) {
170 assert(manager);
174 netdev = hashmap_get(manager->netdevs, name);
199 assert(netdev->manager);
200 assert(netdev->manager->rtnl);
205 r = sd_rtnl_message_new_link(netdev->manager->rtnl, &req, RTM_SETLINK, link->ifindex);
213 r = sd_netlink_call_async(netdev->manager->rtnl, req, callback, link, 0, NULL);
282 assert(netdev->manager);
283 assert(netdev->manager->rtnl);
295 callback(netdev->manager->rtnl, m, link);
473 r = sd_rtnl_message_new_link(netdev->manager->rtnl, &m, RTM_NEWLINK, 0);
522 r = sd_netlink_call_async(netdev->manager->rtnl, m, callback, link, 0, NULL);
528 r = sd_netlink_call_async(netdev->manager->rtnl, m, netdev_create_handler, netdev, 0, NULL);
548 assert(netdev->manager);
549 assert(netdev->manager->rtnl);
572 static int netdev_load_one(Manager *manager, const char *filename) {
578 assert(manager);
633 netdev->manager = manager;
665 r = hashmap_put(netdev->manager->netdevs, netdev->ifname, netdev);
690 int netdev_load(Manager *manager) {
696 assert(manager);
698 while ((netdev = hashmap_first(manager->netdevs)))
706 r = netdev_load_one(manager, *f);