netns.h 894 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. * NFS-private data for each "struct net". Accessed with net_generic().
  3. */
  4. #ifndef __NFS_NETNS_H__
  5. #define __NFS_NETNS_H__
  6. #include <linux/nfs4.h>
  7. #include <net/net_namespace.h>
  8. #include <net/netns/generic.h>
  9. struct bl_dev_msg {
  10. int32_t status;
  11. uint32_t major, minor;
  12. };
  13. struct nfs_net {
  14. struct cache_detail *nfs_dns_resolve;
  15. struct rpc_pipe *bl_device_pipe;
  16. struct bl_dev_msg bl_mount_reply;
  17. wait_queue_head_t bl_wq;
  18. struct mutex bl_mutex;
  19. struct list_head nfs_client_list;
  20. struct list_head nfs_volume_list;
  21. #if IS_ENABLED(CONFIG_NFS_V4)
  22. struct idr cb_ident_idr; /* Protected by nfs_client_lock */
  23. unsigned short nfs_callback_tcpport;
  24. unsigned short nfs_callback_tcpport6;
  25. int cb_users[NFS4_MAX_MINOR_VERSION + 1];
  26. #endif
  27. spinlock_t nfs_client_lock;
  28. ktime_t boot_time;
  29. #ifdef CONFIG_PROC_FS
  30. struct proc_dir_entry *proc_nfsfs;
  31. #endif
  32. };
  33. extern int nfs_net_id;
  34. #endif