netns.h 813 B

123456789101112131415161718192021222324252627282930313233343536
  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 list_head nfs_client_list;
  19. struct list_head nfs_volume_list;
  20. #if IS_ENABLED(CONFIG_NFS_V4)
  21. struct idr cb_ident_idr; /* Protected by nfs_client_lock */
  22. unsigned short nfs_callback_tcpport;
  23. unsigned short nfs_callback_tcpport6;
  24. int cb_users[NFS4_MAX_MINOR_VERSION + 1];
  25. #endif
  26. spinlock_t nfs_client_lock;
  27. struct timespec boot_time;
  28. };
  29. extern int nfs_net_id;
  30. #endif