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