netns.h 976 B

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