netns.h 641 B

12345678910111213141516171819202122232425262728293031
  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 super_block *pipefs_sb;
  11. struct mutex pipefs_sb_lock;
  12. struct list_head all_clients;
  13. spinlock_t rpc_client_lock;
  14. struct rpc_clnt *rpcb_local_clnt;
  15. struct rpc_clnt *rpcb_local_clnt4;
  16. spinlock_t rpcb_clnt_lock;
  17. unsigned int rpcb_users;
  18. };
  19. extern int sunrpc_net_id;
  20. int ip_map_cache_create(struct net *);
  21. void ip_map_cache_destroy(struct net *);
  22. #endif