Searched refs:rtnl_nets (Results 1 – 1 of 1) sorted by relevance
269 struct rtnl_nets { struct277 static void rtnl_nets_init(struct rtnl_nets *rtnl_nets) in rtnl_nets_init() argument279 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() argument286 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() argument306 DEBUG_NET_WARN_ON_ONCE(rtnl_nets->len == ARRAY_SIZE(rtnl_nets->net)); in rtnl_nets_add()[all …]