• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 LOCKD_XDR_H
20 #define LOCKD_XDR_H
21 #include <linux/fs.h>
22 #include <linux/nfs.h>
23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24 #include <linux/sunrpc/xdr.h>
25 #define NLM_MAXCOOKIELEN 32
26 #define NLM_MAXSTRLEN 1024
27 #define nlm_granted __constant_htonl(NLM_LCK_GRANTED)
28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29 #define nlm_lck_denied __constant_htonl(NLM_LCK_DENIED)
30 #define nlm_lck_denied_nolocks __constant_htonl(NLM_LCK_DENIED_NOLOCKS)
31 #define nlm_lck_blocked __constant_htonl(NLM_LCK_BLOCKED)
32 #define nlm_lck_denied_grace_period __constant_htonl(NLM_LCK_DENIED_GRACE_PERIOD)
33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34 struct nlm_lock {
35  char * caller;
36  int len;
37  struct nfs_fh fh;
38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39  struct xdr_netobj oh;
40  u32 svid;
41  struct file_lock fl;
42 };
43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44 struct nlm_cookie
45 {
46  unsigned char data[NLM_MAXCOOKIELEN];
47  unsigned int len;
48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49 };
50 struct nlm_args {
51  struct nlm_cookie cookie;
52  struct nlm_lock lock;
53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54  u32 block;
55  u32 reclaim;
56  u32 state;
57  u32 monitor;
58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59  u32 fsm_access;
60  u32 fsm_mode;
61 };
62 typedef struct nlm_args nlm_args;
63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64 struct nlm_res {
65  struct nlm_cookie cookie;
66  u32 status;
67  struct nlm_lock lock;
68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69 };
70 struct nlm_reboot {
71  char * mon;
72  int len;
73 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74  u32 state;
75  u32 addr;
76  u32 vers;
77  u32 proto;
78 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79 };
80 #define NLMSVC_XDRSIZE sizeof(struct nlm_args)
81 #endif
82