• 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 LINUX_LOCKD_NLM_H
20 #define LINUX_LOCKD_NLM_H
21 #define NLM_OFFSET_MAX ((s32) 0x7fffffff)
22 #define NLM4_OFFSET_MAX ((s64) ((~(u64)0) >> 1))
23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24 enum {
25  NLM_LCK_GRANTED = 0,
26  NLM_LCK_DENIED = 1,
27  NLM_LCK_DENIED_NOLOCKS = 2,
28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29  NLM_LCK_BLOCKED = 3,
30  NLM_LCK_DENIED_GRACE_PERIOD = 4,
31 };
32 #define NLM_PROGRAM 100021
33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34 #define NLMPROC_NULL 0
35 #define NLMPROC_TEST 1
36 #define NLMPROC_LOCK 2
37 #define NLMPROC_CANCEL 3
38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39 #define NLMPROC_UNLOCK 4
40 #define NLMPROC_GRANTED 5
41 #define NLMPROC_TEST_MSG 6
42 #define NLMPROC_LOCK_MSG 7
43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44 #define NLMPROC_CANCEL_MSG 8
45 #define NLMPROC_UNLOCK_MSG 9
46 #define NLMPROC_GRANTED_MSG 10
47 #define NLMPROC_TEST_RES 11
48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49 #define NLMPROC_LOCK_RES 12
50 #define NLMPROC_CANCEL_RES 13
51 #define NLMPROC_UNLOCK_RES 14
52 #define NLMPROC_GRANTED_RES 15
53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54 #define NLMPROC_NSM_NOTIFY 16
55 #define NLMPROC_SHARE 20
56 #define NLMPROC_UNSHARE 21
57 #define NLMPROC_NM_LOCK 22
58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59 #define NLMPROC_FREE_ALL 23
60 #endif
61