netns.h 928 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #ifndef __SUNRPC_NETNS_H__
  2. #define __SUNRPC_NETNS_H__
  3. #include <net/net_namespace.h>
  4. #include <net/netns/generic.h>
  5. struct cache_detail;
  6. struct sunrpc_net {
  7. struct proc_dir_entry *proc_net_rpc;
  8. struct cache_detail *ip_map_cache;
  9. struct cache_detail *unix_gid_cache;
  10. struct cache_detail *rsc_cache;
  11. struct cache_detail *rsi_cache;
  12. struct super_block *pipefs_sb;
  13. struct rpc_pipe *gssd_dummy;
  14. struct mutex pipefs_sb_lock;
  15. struct list_head all_clients;
  16. spinlock_t rpc_client_lock;
  17. struct rpc_clnt *rpcb_local_clnt;
  18. struct rpc_clnt *rpcb_local_clnt4;
  19. spinlock_t rpcb_clnt_lock;
  20. unsigned int rpcb_users;
  21. unsigned int rpcb_is_af_local : 1;
  22. struct mutex gssp_lock;
  23. struct rpc_clnt *gssp_clnt;
  24. int use_gss_proxy;
  25. int pipe_version;
  26. atomic_t pipe_users;
  27. struct proc_dir_entry *use_gssp_proc;
  28. };
  29. extern int sunrpc_net_id;
  30. int ip_map_cache_create(struct net *);
  31. void ip_map_cache_destroy(struct net *);
  32. #endif