Pavel Emelyanov | 2f72c9b | 2010-09-27 14:01:27 +0400 | [diff] [blame] | 1 | #ifndef __SUNRPC_NETNS_H__ |
| 2 | #define __SUNRPC_NETNS_H__ |
| 3 | |
| 4 | #include <net/net_namespace.h> |
| 5 | #include <net/netns/generic.h> |
| 6 | |
Pavel Emelyanov | 90d51b0 | 2010-09-27 14:02:29 +0400 | [diff] [blame] | 7 | struct cache_detail; |
| 8 | |
Pavel Emelyanov | 2f72c9b | 2010-09-27 14:01:27 +0400 | [diff] [blame] | 9 | struct sunrpc_net { |
Pavel Emelyanov | 4f42d0d | 2010-09-27 14:01:58 +0400 | [diff] [blame] | 10 | struct proc_dir_entry *proc_net_rpc; |
Pavel Emelyanov | 90d51b0 | 2010-09-27 14:02:29 +0400 | [diff] [blame] | 11 | struct cache_detail *ip_map_cache; |
Stanislav Kinsbursky | 90c4e82 | 2011-12-26 15:39:30 +0300 | [diff] [blame] | 12 | |
| 13 | struct super_block *pipefs_sb; |
Stanislav Kinsbursky | c21a588 | 2011-12-26 15:39:39 +0300 | [diff] [blame] | 14 | struct mutex pipefs_sb_lock; |
Stanislav Kinsbursky | 70abc49 | 2012-01-12 22:07:51 +0400 | [diff] [blame^] | 15 | |
| 16 | struct list_head all_clients; |
| 17 | spinlock_t rpc_client_lock; |
Pavel Emelyanov | 2f72c9b | 2010-09-27 14:01:27 +0400 | [diff] [blame] | 18 | }; |
| 19 | |
| 20 | extern int sunrpc_net_id; |
| 21 | |
Pavel Emelyanov | 90d51b0 | 2010-09-27 14:02:29 +0400 | [diff] [blame] | 22 | int ip_map_cache_create(struct net *); |
| 23 | void ip_map_cache_destroy(struct net *); |
| 24 | |
Pavel Emelyanov | 2f72c9b | 2010-09-27 14:01:27 +0400 | [diff] [blame] | 25 | #endif |