Home
last modified time | relevance | path

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

/linux/net/core/
H A Drtnetlink.c269 struct rtnl_nets { struct
277 static void rtnl_nets_init(struct rtnl_nets *rtnl_nets) in rtnl_nets_init() argument
279 memset(rtnl_nets, 0, sizeof(*rtnl_nets)); in rtnl_nets_init()
282 static void rtnl_nets_destroy(struct rtnl_nets *rtnl_nets) in rtnl_nets_destroy() argument
286 for (i = 0; i < rtnl_nets->len; i++) { in rtnl_nets_destroy()
287 put_net(rtnl_nets->net[i]); in rtnl_nets_destroy()
288 rtnl_nets->net[i] = NULL; in rtnl_nets_destroy()
291 rtnl_nets->len = 0; in rtnl_nets_destroy()
302 static void rtnl_nets_add(struct rtnl_nets *rtnl_nets, struct net *net) in rtnl_nets_add() argument
306 DEBUG_NET_WARN_ON_ONCE(rtnl_nets->len == ARRAY_SIZE(rtnl_nets->net)); in rtnl_nets_add()
[all …]