42 #include <netlink-local.h>
43 #include <netlink/netlink.h>
44 #include <netlink/utils.h>
45 #include <netlink/route/link.h>
46 #include <netlink/route/link/info-api.h>
54 for (ops = info_ops; ops; ops = ops->io_next)
55 if (!strcmp(ops->
io_name, name))
64 return nl_error(EINVAL,
"No name specified");
66 if (rtnl_link_info_ops_lookup(ops->
io_name))
67 return nl_error(EEXIST,
"Link info operations already exist");
69 NL_DBG(1,
"Registered link info operations %s\n", ops->
io_name);
71 ops->io_next = info_ops;
81 for (tp = &info_ops; (t=*tp) != NULL; tp = &t->io_next)
86 return nl_error(ENOENT,
"No such link info operations");
89 return nl_error(EBUSY,
"Info operations in use");
91 NL_DBG(1,
"Unregistered link info perations %s\n", ops->
io_name);