netns.h 942 B

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