netns.h 955 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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 mutex pipefs_sb_lock;
  14. struct list_head all_clients;
  15. spinlock_t rpc_client_lock;
  16. struct rpc_clnt *rpcb_local_clnt;
  17. struct rpc_clnt *rpcb_local_clnt4;
  18. spinlock_t rpcb_clnt_lock;
  19. unsigned int rpcb_users;
  20. unsigned int rpcb_is_af_local : 1;
  21. struct mutex gssp_lock;
  22. wait_queue_head_t gssp_wq;
  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. unsigned int gssd_running;
  29. };
  30. extern int sunrpc_net_id;
  31. int ip_map_cache_create(struct net *);
  32. void ip_map_cache_destroy(struct net *);
  33. #endif