Lines Matching refs:kind
328 static const struct rtnl_link_ops *rtnl_link_ops_get(const char *kind) in rtnl_link_ops_get() argument
333 if (!strcmp(ops->kind, kind)) in rtnl_link_ops_get()
348 nlmsg_total_size(strlen(ops->kind) + 1); /* IFLA_INFO_KIND */ in rtnl_link_get_size()
371 if (nla_put_string(skb, IFLA_INFO_KIND, ops->kind) < 0) in rtnl_link_fill()
1040 char kind[MODULE_NAME_LEN]; in rtnl_newlink() local
1078 nla_strlcpy(kind, linkinfo[IFLA_INFO_KIND], sizeof(kind)); in rtnl_newlink()
1079 ops = rtnl_link_ops_get(kind); in rtnl_newlink()
1081 kind[0] = '\0'; in rtnl_newlink()
1136 if (kind[0]) { in rtnl_newlink()
1138 request_module("rtnl-link-%s", kind); in rtnl_newlink()
1140 ops = rtnl_link_ops_get(kind); in rtnl_newlink()
1149 snprintf(ifname, IFNAMSIZ, "%s%%d", ops->kind); in rtnl_newlink()
1265 int sz_idx, kind; in rtnetlink_rcv_msg() local
1286 kind = type&3; in rtnetlink_rcv_msg()
1288 if (kind != 2 && security_netlink_recv(skb, CAP_NET_ADMIN)) in rtnetlink_rcv_msg()
1291 if (kind == 2 && nlh->nlmsg_flags&NLM_F_DUMP) { in rtnetlink_rcv_msg()