netns.h 1006 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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_netns_client;
  15. struct nfs_net {
  16. struct cache_detail *nfs_dns_resolve;
  17. struct rpc_pipe *bl_device_pipe;
  18. struct bl_dev_msg bl_mount_reply;
  19. wait_queue_head_t bl_wq;
  20. struct mutex bl_mutex;
  21. struct list_head nfs_client_list;
  22. struct list_head nfs_volume_list;
  23. #if IS_ENABLED(CONFIG_NFS_V4)
  24. struct idr cb_ident_idr; /* Protected by nfs_client_lock */
  25. unsigned short nfs_callback_tcpport;
  26. unsigned short nfs_callback_tcpport6;
  27. int cb_users[NFS4_MAX_MINOR_VERSION + 1];
  28. #endif
  29. struct nfs_netns_client *nfs_client;
  30. spinlock_t nfs_client_lock;
  31. ktime_t boot_time;
  32. #ifdef CONFIG_PROC_FS
  33. struct proc_dir_entry *proc_nfsfs;
  34. #endif
  35. };
  36. extern unsigned int nfs_net_id;
  37. #endif