| #ifndef _COMPAT_NET_NET_NAMESPACE_H |
| #define _COMPAT_NET_NET_NAMESPACE_H 1 |
| #include_next <net/net_namespace.h> |
| #if LINUX_VERSION_IS_LESS(3,20,0) |
| * In older kernels we simply fail this function. |
| #define get_net_ns_by_fd LINUX_BACKPORT(get_net_ns_by_fd) |
| static inline struct net *get_net_ns_by_fd(int fd) |
| #if LINUX_VERSION_IS_LESS(4,1,0) |
| static inline void possible_write_pnet(possible_net_t *pnet, struct net *net) |
| static inline struct net *possible_read_pnet(const possible_net_t *pnet) |
| #define possible_write_pnet(pnet, net) write_pnet(pnet, net) |
| #define possible_read_pnet(pnet) read_pnet(pnet) |
| #endif /* LINUX_VERSION_IS_LESS(4,1,0) */ |
| #endif /* _COMPAT_NET_NET_NAMESPACE_H */ |