net_namespace.h (44bf67f32a6803339ac1ba721b158c3e2272cabe) net_namespace.h (d4e4fdf9e4a27c87edb79b1478955075be141f67)
1/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * Operations on the network namespace
4 */
5#ifndef __NET_NET_NAMESPACE_H
6#define __NET_NET_NAMESPACE_H
7
8#include <linux/atomic.h>

--- 328 unchanged lines hidden (view full) ---

337#define __net_initconst
338#else
339#define __net_init __init
340#define __net_exit __ref
341#define __net_initdata __initdata
342#define __net_initconst __initconst
343#endif
344
1/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * Operations on the network namespace
4 */
5#ifndef __NET_NET_NAMESPACE_H
6#define __NET_NET_NAMESPACE_H
7
8#include <linux/atomic.h>

--- 328 unchanged lines hidden (view full) ---

337#define __net_initconst
338#else
339#define __net_init __init
340#define __net_exit __ref
341#define __net_initdata __initdata
342#define __net_initconst __initconst
343#endif
344
345int peernet2id_alloc(struct net *net, struct net *peer);
345int peernet2id_alloc(struct net *net, struct net *peer, gfp_t gfp);
346int peernet2id(struct net *net, struct net *peer);
347bool peernet_has_id(struct net *net, struct net *peer);
348struct net *get_net_ns_by_id(struct net *net, int id);
349
350struct pernet_operations {
351 struct list_head list;
352 /*
353 * Below methods are called without any exclusive locks.

--- 115 unchanged lines hidden ---
346int peernet2id(struct net *net, struct net *peer);
347bool peernet_has_id(struct net *net, struct net *peer);
348struct net *get_net_ns_by_id(struct net *net, int id);
349
350struct pernet_operations {
351 struct list_head list;
352 /*
353 * Below methods are called without any exclusive locks.

--- 115 unchanged lines hidden ---