netns.h 707 B

12345678910111213141516171819202122232425262728293031323334
  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. };
  21. extern int sunrpc_net_id;
  22. int ip_map_cache_create(struct net *);
  23. void ip_map_cache_destroy(struct net *);
  24. #endif