netns.h 469 B

12345678910111213141516171819202122232425
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef __LOCKD_NETNS_H__
  3. #define __LOCKD_NETNS_H__
  4. #include <linux/fs.h>
  5. #include <linux/filelock.h>
  6. #include <net/netns/generic.h>
  7. struct lockd_net {
  8. unsigned int nlmsvc_users;
  9. unsigned long next_gc;
  10. unsigned long nrhosts;
  11. u32 gracetime;
  12. u16 tcp_port;
  13. u16 udp_port;
  14. struct delayed_work grace_period_end;
  15. struct lock_manager lockd_manager;
  16. struct list_head nsm_handles;
  17. };
  18. extern unsigned int lockd_net_id;
  19. #endif