Home
last modified time | relevance | path

Searched refs:rtnl (Results 1 – 8 of 8) sorted by relevance

/Linux-v6.1/tools/testing/selftests/net/
Dtun.c75 int ret, rtnl; in tun_delete() local
77 rtnl = socket(AF_NETLINK, SOCK_DGRAM, NETLINK_ROUTE); in tun_delete()
78 if (rtnl < 0) { in tun_delete()
96 ret = send(rtnl, &req, req.nh.nlmsg_len, 0); in tun_delete()
101 close(rtnl); in tun_delete()
Dtap.c93 int ret, rtnl; in dev_create() local
95 rtnl = socket(AF_NETLINK, SOCK_DGRAM, NETLINK_ROUTE); in dev_create()
96 if (rtnl < 0) { in dev_create()
134 ret = send(rtnl, &req, req.nh.nlmsg_len, 0); in dev_create()
139 close(rtnl); in dev_create()
150 int ret, rtnl; in dev_delete() local
152 rtnl = socket(AF_NETLINK, SOCK_DGRAM, NETLINK_ROUTE); in dev_delete()
153 if (rtnl < 0) { in dev_delete()
167 ret = send(rtnl, &req, req.nh.nlmsg_len, 0); in dev_delete()
173 close(rtnl); in dev_delete()
/Linux-v6.1/net/core/
Drtnetlink.c749 struct sock *rtnl = net->rtnl; in rtnetlink_send() local
751 return nlmsg_notify(rtnl, skb, pid, group, echo, GFP_KERNEL); in rtnetlink_send()
756 struct sock *rtnl = net->rtnl; in rtnl_unicast() local
758 return nlmsg_unicast(rtnl, skb, pid); in rtnl_unicast()
765 struct sock *rtnl = net->rtnl; in rtnl_notify() local
767 nlmsg_notify(rtnl, skb, pid, group, nlmsg_report(nlh), flags); in rtnl_notify()
773 struct sock *rtnl = net->rtnl; in rtnl_set_sk_err() local
775 netlink_set_err(rtnl, 0, group, error); in rtnl_set_sk_err()
6016 struct sock *rtnl; in rtnetlink_rcv_msg() local
6040 rtnl = net->rtnl; in rtnetlink_rcv_msg()
[all …]
/Linux-v6.1/net/ieee802154/
Dnl802154.c2166 bool rtnl = ops->internal_flags & NL802154_FLAG_NEED_RTNL; in nl802154_pre_doit() local
2168 if (rtnl) in nl802154_pre_doit()
2174 if (rtnl) in nl802154_pre_doit()
2185 if (rtnl) in nl802154_pre_doit()
2195 if (rtnl) in nl802154_pre_doit()
2208 if (rtnl) in nl802154_pre_doit()
/Linux-v6.1/include/net/
Dnet_namespace.h104 struct sock *rtnl; /* rtnetlink socket */ member
/Linux-v6.1/Documentation/networking/
Dsfp-phylink.rst134 rtnl lock, and will warn if not. This will normally be the case,
/Linux-v6.1/drivers/net/
Dvrf.c1603 skb->sk = dev_net(dev)->rtnl; in vrf_fib_rule()
Dmacsec.c4380 goto rtnl; in macsec_init()
4384 rtnl: in macsec_init()