1 /**************************************************************************** 2 **************************************************************************** 3 *** 4 *** This header was automatically generated from a Linux kernel header 5 *** of the same name, to make information necessary for userspace to 6 *** call into the kernel available to libc. It contains only constants, 7 *** structures, and macros generated from the original header, and thus, 8 *** contains no copyrightable information. 9 *** 10 *** To edit the content of this header, modify the corresponding 11 *** source file (e.g. under external/kernel-headers/original/) then 12 *** run bionic/libc/kernel/tools/update_all.py 13 *** 14 *** Any manual change here will be lost the next time this script will 15 *** be run. You've been warned! 16 *** 17 **************************************************************************** 18 ****************************************************************************/ 19 #ifndef _UAPI_LINUX_NFSD_FH_H 20 #define _UAPI_LINUX_NFSD_FH_H 21 #include <linux/types.h> 22 #include <linux/nfs.h> 23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 24 #include <linux/nfs2.h> 25 #include <linux/nfs3.h> 26 #include <linux/nfs4.h> 27 struct nfs_fhbase_old { 28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 29 __u32 fb_dcookie; 30 __u32 fb_ino; 31 __u32 fb_dirino; 32 __u32 fb_dev; 33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 34 __u32 fb_xdev; 35 __u32 fb_xino; 36 __u32 fb_generation; 37 }; 38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 39 struct nfs_fhbase_new { 40 __u8 fb_version; 41 __u8 fb_auth_type; 42 __u8 fb_fsid_type; 43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 44 __u8 fb_fileid_type; 45 __u32 fb_auth[1]; 46 }; 47 struct knfsd_fh { 48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 49 unsigned int fh_size; 50 union { 51 struct nfs_fhbase_old fh_old; 52 __u32 fh_pad[NFS4_FHSIZE / 4]; 53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 54 struct nfs_fhbase_new fh_new; 55 } fh_base; 56 }; 57 #define ofh_dcookie fh_base.fh_old.fb_dcookie 58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 59 #define ofh_ino fh_base.fh_old.fb_ino 60 #define ofh_dirino fh_base.fh_old.fb_dirino 61 #define ofh_dev fh_base.fh_old.fb_dev 62 #define ofh_xdev fh_base.fh_old.fb_xdev 63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 64 #define ofh_xino fh_base.fh_old.fb_xino 65 #define ofh_generation fh_base.fh_old.fb_generation 66 #define fh_version fh_base.fh_new.fb_version 67 #define fh_fsid_type fh_base.fh_new.fb_fsid_type 68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 69 #define fh_auth_type fh_base.fh_new.fb_auth_type 70 #define fh_fileid_type fh_base.fh_new.fb_fileid_type 71 #define fh_fsid fh_base.fh_new.fb_auth 72 #define fh_auth fh_base.fh_new.fb_auth 73 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 74 #endif 75