netns.h 669 B

1234567891011121314151617181920212223242526272829303132
  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 <net/net_namespace.h>
  7. #include <net/netns/generic.h>
  8. struct bl_dev_msg {
  9. int32_t status;
  10. uint32_t major, minor;
  11. };
  12. struct nfs_net {
  13. struct cache_detail *nfs_dns_resolve;
  14. struct rpc_pipe *bl_device_pipe;
  15. struct bl_dev_msg bl_mount_reply;
  16. wait_queue_head_t bl_wq;
  17. struct list_head nfs_client_list;
  18. struct list_head nfs_volume_list;
  19. #if IS_ENABLED(CONFIG_NFS_V4)
  20. struct idr cb_ident_idr; /* Protected by nfs_client_lock */
  21. #endif
  22. spinlock_t nfs_client_lock;
  23. struct timespec boot_time;
  24. };
  25. extern int nfs_net_id;
  26. #endif