Searched refs:netns_ids (Results 1 - 4 of 4) sorted by relevance
/kernel/linux/linux-5.10/net/core/ |
H A D | net_namespace.c | 225 return idr_alloc(&net->netns_ids, peer, min, max, GFP_ATOMIC); in alloc_netid() 244 int id = idr_for_each(&net->netns_ids, net_eq_idr, peer); in __peernet2id() 276 * we never hash a peer back to net->netns_ids, after it has in peernet2id_alloc() 326 peer = idr_find(&net->netns_ids, id); in get_net_ns_by_id() 349 idr_init(&net->netns_ids); in setup_net() 555 idr_remove(&tmp->netns_ids, id); in unhash_nsid() 564 idr_destroy(&net->netns_ids); in unhash_nsid() 594 * useless anyway, as netns_ids are destroyed there. in cleanup_net() 1074 idr_for_each(&net_cb.tgt_net->netns_ids, rtnl_net_dumpid_one, &net_cb); in rtnl_net_dumpid()
|
/kernel/linux/linux-6.6/net/core/ |
H A D | net_namespace.c | 198 return idr_alloc(&net->netns_ids, peer, min, max, GFP_ATOMIC); in alloc_netid() 217 int id = idr_for_each(&net->netns_ids, net_eq_idr, peer); in __peernet2id() 249 * we never hash a peer back to net->netns_ids, after it has in peernet2id_alloc() 299 peer = idr_find(&net->netns_ids, id); in get_net_ns_by_id() 334 idr_init(&net->netns_ids); in setup_net() 551 idr_remove(&tmp->netns_ids, id); in unhash_nsid() 560 idr_destroy(&net->netns_ids); in unhash_nsid() 590 * useless anyway, as netns_ids are destroyed there. in cleanup_net() 1063 idr_for_each(&net_cb.tgt_net->netns_ids, rtnl_net_dumpid_one, &net_cb); in rtnl_net_dumpid()
|
/kernel/linux/linux-5.10/include/net/ |
H A D | net_namespace.h | 93 struct idr netns_ids; member
|
/kernel/linux/linux-6.6/include/net/ |
H A D | net_namespace.h | 92 struct idr netns_ids; member
|
Completed in 7 milliseconds