Home
last modified time | relevance | path

Searched refs:rtnl (Results 1 - 14 of 14) sorted by relevance

/kernel/linux/linux-6.6/tools/testing/selftests/net/
H A 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()
79 fprintf(stderr, "can't open rtnl: %s\n", strerror(errno)); in tun_delete()
96 ret = send(rtnl, &req, req.nh.nlmsg_len, 0); in tun_delete()
101 close(rtnl); in tun_delete()
H A 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()
[all...]
/kernel/linux/linux-5.10/net/core/
H A Drtnetlink.c708 struct sock *rtnl = net->rtnl; in rtnetlink_send() local
714 netlink_broadcast(rtnl, skb, pid, group, GFP_KERNEL); in rtnetlink_send()
716 err = netlink_unicast(rtnl, skb, pid, MSG_DONTWAIT); in rtnetlink_send()
722 struct sock *rtnl = net->rtnl; in rtnl_unicast() local
724 return nlmsg_unicast(rtnl, skb, pid); in rtnl_unicast()
731 struct sock *rtnl = net->rtnl; in rtnl_notify() local
737 nlmsg_notify(rtnl, sk in rtnl_notify()
743 struct sock *rtnl = net->rtnl; rtnl_set_sk_err() local
5539 struct sock *rtnl; rtnetlink_rcv_msg() local
[all...]
/kernel/linux/linux-6.6/net/core/
H A Drtnetlink.c753 struct sock *rtnl = net->rtnl; in rtnetlink_send() local
755 return nlmsg_notify(rtnl, skb, pid, group, echo, GFP_KERNEL); in rtnetlink_send()
760 struct sock *rtnl = net->rtnl; in rtnl_unicast() local
762 return nlmsg_unicast(rtnl, skb, pid); in rtnl_unicast()
769 struct sock *rtnl = net->rtnl; in rtnl_notify() local
771 nlmsg_notify(rtnl, skb, pid, group, nlmsg_report(nlh), flags); in rtnl_notify()
777 struct sock *rtnl in rtnl_set_sk_err() local
6366 struct sock *rtnl; rtnetlink_rcv_msg() local
[all...]
/kernel/linux/linux-5.10/include/net/
H A Dnet_namespace.h105 struct sock *rtnl; /* rtnetlink socket */ member
/kernel/linux/linux-5.10/net/ieee802154/
H A Dnl802154.c2170 bool rtnl = ops->internal_flags & NL802154_FLAG_NEED_RTNL; in nl802154_pre_doit() local
2172 if (rtnl) in nl802154_pre_doit()
2178 if (rtnl) in nl802154_pre_doit()
2189 if (rtnl) in nl802154_pre_doit()
2199 if (rtnl) in nl802154_pre_doit()
2212 if (rtnl) in nl802154_pre_doit()
/kernel/linux/linux-6.6/net/ieee802154/
H A Dnl802154.c2523 bool rtnl = ops->internal_flags & NL802154_FLAG_NEED_RTNL; in nl802154_pre_doit() local
2525 if (rtnl) in nl802154_pre_doit()
2531 if (rtnl) in nl802154_pre_doit()
2542 if (rtnl) in nl802154_pre_doit()
2552 if (rtnl) in nl802154_pre_doit()
2565 if (rtnl) in nl802154_pre_doit()
/kernel/linux/linux-6.6/include/net/
H A Dnet_namespace.h107 struct sock *rtnl; /* rtnetlink socket */ member
/kernel/linux/linux-5.10/net/sched/
H A Dcls_api.c238 /* On error return false to take rtnl lock. Proto lookup/create in tcf_proto_is_unlocked()
937 * consistent dump because rtnl lock is released each time skb is filled with
990 * consistent dump because rtnl lock is released each time skb is filled with
1147 * of rules update path of cls API without rtnl lock. Caller in __tcf_block_find()
1875 err = netlink_unicast(net->rtnl, skb, portid, MSG_DONTWAIT); in tfilter_notify()
1914 err = netlink_unicast(net->rtnl, skb, portid, MSG_DONTWAIT); in tfilter_del_notify()
2016 /* Take rtnl mutex if rtnl_held was set to true on previous iteration, in tc_new_tfilter()
2162 /* Take rtnl lock in case EAGAIN is caused by concurrent flush in tc_new_tfilter()
2226 /* Take rtnl mutex if flushing whole chain, block is shared (no qdisc in tc_del_tfilter()
2383 /* Take rtnl mute in tc_get_tfilter()
[all...]
/kernel/linux/linux-5.10/drivers/net/
H A Dvrf.c103 /* protected by rtnl lock */
264 /* called with rtnl lock held */
324 /* called with rtnl lock held */
803 /* holding rtnl */
1057 /* holding rtnl */
1538 skb->sk = dev_net(dev)->rtnl; in vrf_fib_rule()
H A Dmacsec.c4394 goto rtnl; in macsec_init()
4398 rtnl: in macsec_init()
/kernel/linux/linux-6.6/drivers/net/
H A Dvrf.c105 /* protected by rtnl lock */
256 /* called with rtnl lock held */
316 /* called with rtnl lock held */
790 /* holding rtnl */
1037 /* holding rtnl */
1581 skb->sk = dev_net(dev)->rtnl; in vrf_fib_rule()
H A Dmacsec.c4411 goto rtnl; in macsec_init()
4415 rtnl: in macsec_init()
/kernel/linux/linux-5.10/net/wireless/
H A Dnl80211.c13658 /* keep rtnl locked in successful case */ in nl80211_prepare_vendor_dump()
13734 /* keep rtnl locked in successful case */ in nl80211_prepare_vendor_dump()
14616 bool rtnl = ops->internal_flags & NL80211_FLAG_NEED_RTNL; in nl80211_pre_doit() local
14618 if (rtnl) in nl80211_pre_doit()
14624 if (rtnl) in nl80211_pre_doit()
14636 if (rtnl) in nl80211_pre_doit()
14646 if (rtnl) in nl80211_pre_doit()
14658 if (rtnl) in nl80211_pre_doit()

Completed in 55 milliseconds