blob: 62f08148ce9dc7811635bcc052f439bb9c2ab669 [file] [log] [blame]
The Android Open Source Project1dc9e472009-03-03 19:28:35 -08001/****************************************************************************
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 ***
Ben Cheng654325d2012-03-07 21:13:49 -080010 *** 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 ***
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080017 ****************************************************************************
18 ****************************************************************************/
19#ifndef LINUX_LOCKD_NLM_H
20#define LINUX_LOCKD_NLM_H
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080021#define NLM_OFFSET_MAX ((s32) 0x7fffffff)
22#define NLM4_OFFSET_MAX ((s64) ((~(u64)0) >> 1))
Ben Cheng654325d2012-03-07 21:13:49 -080023/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080024enum {
25 NLM_LCK_GRANTED = 0,
26 NLM_LCK_DENIED = 1,
27 NLM_LCK_DENIED_NOLOCKS = 2,
Ben Cheng654325d2012-03-07 21:13:49 -080028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080029 NLM_LCK_BLOCKED = 3,
30 NLM_LCK_DENIED_GRACE_PERIOD = 4,
31};
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080032#define NLM_PROGRAM 100021
Ben Cheng654325d2012-03-07 21:13:49 -080033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080034#define NLMPROC_NULL 0
35#define NLMPROC_TEST 1
36#define NLMPROC_LOCK 2
37#define NLMPROC_CANCEL 3
Ben Cheng654325d2012-03-07 21:13:49 -080038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080039#define NLMPROC_UNLOCK 4
40#define NLMPROC_GRANTED 5
41#define NLMPROC_TEST_MSG 6
42#define NLMPROC_LOCK_MSG 7
Ben Cheng654325d2012-03-07 21:13:49 -080043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080044#define NLMPROC_CANCEL_MSG 8
45#define NLMPROC_UNLOCK_MSG 9
46#define NLMPROC_GRANTED_MSG 10
47#define NLMPROC_TEST_RES 11
Ben Cheng654325d2012-03-07 21:13:49 -080048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080049#define NLMPROC_LOCK_RES 12
50#define NLMPROC_CANCEL_RES 13
51#define NLMPROC_UNLOCK_RES 14
52#define NLMPROC_GRANTED_RES 15
Ben Cheng654325d2012-03-07 21:13:49 -080053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080054#define NLMPROC_NSM_NOTIFY 16
55#define NLMPROC_SHARE 20
56#define NLMPROC_UNSHARE 21
57#define NLMPROC_NM_LOCK 22
Ben Cheng654325d2012-03-07 21:13:49 -080058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080059#define NLMPROC_FREE_ALL 23
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080060#endif