• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * This header was generated from the Linux kernel headers by update_headers.py,
3  * to provide necessary information from kernel to userspace, such as constants,
4  * structures, and macros, and thus, contains no copyrightable information.
5  */
6 #ifndef _NFSD_CLD_H
7 #define _NFSD_CLD_H
8 #include <linux/types.h>
9 #define CLD_UPCALL_VERSION 1
10 #define NFS4_OPAQUE_LIMIT 1024
11 enum cld_command {
12 	Cld_Create,
13 	Cld_Remove,
14 	Cld_Check,
15 	Cld_GraceDone,
16 };
17 struct cld_name {
18 	__u16		cn_len;
19 	unsigned char	cn_id[NFS4_OPAQUE_LIMIT];
20 } __attribute__((packed));
21 struct cld_msg {
22 	__u8		cm_vers;
23 	__u8		cm_cmd;
24 	__s16		cm_status;
25 	__u32		cm_xid;
26 	union {
27 		__s64		cm_gracetime;
28 		struct cld_name	cm_name;
29 	} __attribute__((packed)) cm_u;
30 } __attribute__((packed));
31 #endif
32