OXIESEC PANEL
- Current Dir:
/
/
usr
/
src
/
linux-headers-4.15.0-197
/
include
/
net
/
netns
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
11/17/2022 06:42:23 AM
rwxr-xr-x
📄
can.h
1.08 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
conntrack.h
2.72 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
core.h
285 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
dccp.h
185 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
generic.h
1.15 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
hash.h
212 bytes
11/01/2022 04:52:05 PM
rw-r--r--
📄
ieee802154_6lowpan.h
399 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
ipv4.h
5.2 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
ipv6.h
2.64 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
mib.h
986 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
mpls.h
371 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
netfilter.h
689 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
nftables.h
440 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
packet.h
295 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
sctp.h
3.83 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
unix.h
263 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
x_tables.h
507 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
xfrm.h
1.84 KB
11/01/2022 04:52:05 PM
rw-r--r--
Editing: generic.h
Close
/* SPDX-License-Identifier: GPL-2.0 */ /* * generic net pointers */ #ifndef __NET_GENERIC_H__ #define __NET_GENERIC_H__ #include <linux/bug.h> #include <linux/rcupdate.h> /* * Generic net pointers are to be used by modules to put some private * stuff on the struct net without explicit struct net modification * * The rules are simple: * 1. set pernet_operations->id. After register_pernet_device you * will have the id of your private pointer. * 2. set pernet_operations->size to have the code allocate and free * a private structure pointed to from struct net. * 3. do not change this pointer while the net is alive; * 4. do not try to have any private reference on the net_generic object. * * After accomplishing all of the above, the private pointer can be * accessed with the net_generic() call. */ struct net_generic { union { struct { unsigned int len; struct rcu_head rcu; } s; void *ptr[0]; }; }; static inline void *net_generic(const struct net *net, unsigned int id) { struct net_generic *ng; void *ptr; rcu_read_lock(); ng = rcu_dereference(net->gen); ptr = ng->ptr[id]; rcu_read_unlock(); return ptr; } #endif