netns.h 849 字节
Newer Older
P
Pavel Emelyanov 已提交
1 2 3 4 5 6
#ifndef __SUNRPC_NETNS_H__
#define __SUNRPC_NETNS_H__

#include <net/net_namespace.h>
#include <net/netns/generic.h>

7 8
struct cache_detail;

P
Pavel Emelyanov 已提交
9
struct sunrpc_net {
10
	struct proc_dir_entry *proc_net_rpc;
11
	struct cache_detail *ip_map_cache;
12
	struct cache_detail *unix_gid_cache;
13 14
	struct cache_detail *rsc_cache;
	struct cache_detail *rsi_cache;
15 16

	struct super_block *pipefs_sb;
17
	struct mutex pipefs_sb_lock;
18 19 20

	struct list_head all_clients;
	spinlock_t rpc_client_lock;
21 22 23 24 25

	struct rpc_clnt *rpcb_local_clnt;
	struct rpc_clnt *rpcb_local_clnt4;
	spinlock_t rpcb_clnt_lock;
	unsigned int rpcb_users;
26 27

	struct mutex gssp_lock;
28
	wait_queue_head_t gssp_wq;
29
	struct rpc_clnt *gssp_clnt;
30 31
	int use_gss_proxy;
	struct proc_dir_entry *use_gssp_proc;
P
Pavel Emelyanov 已提交
32 33 34 35
};

extern int sunrpc_net_id;

36 37 38
int ip_map_cache_create(struct net *);
void ip_map_cache_destroy(struct net *);

P
Pavel Emelyanov 已提交
39
#endif