blob: d5d44fe95819108b5af0da43bad6f3a0ae4534d9 [file] [log] [blame]
Dan Albert287553d2017-02-16 10:47:51 -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 ***
10 ****************************************************************************
11 ****************************************************************************/
12#ifndef LINUX_LOCKD_NLM_H
13#define LINUX_LOCKD_NLM_H
14
15#define NLM_OFFSET_MAX ((s32) 0x7fffffff)
16#define NLM4_OFFSET_MAX ((s64) ((~(u64)0) >> 1))
17
18enum {
19 NLM_LCK_GRANTED = 0,
20 NLM_LCK_DENIED = 1,
21 NLM_LCK_DENIED_NOLOCKS = 2,
22 NLM_LCK_BLOCKED = 3,
23 NLM_LCK_DENIED_GRACE_PERIOD = 4,
24};
25
26#define NLM_PROGRAM 100021
27
28#define NLMPROC_NULL 0
29#define NLMPROC_TEST 1
30#define NLMPROC_LOCK 2
31#define NLMPROC_CANCEL 3
32#define NLMPROC_UNLOCK 4
33#define NLMPROC_GRANTED 5
34#define NLMPROC_TEST_MSG 6
35#define NLMPROC_LOCK_MSG 7
36#define NLMPROC_CANCEL_MSG 8
37#define NLMPROC_UNLOCK_MSG 9
38#define NLMPROC_GRANTED_MSG 10
39#define NLMPROC_TEST_RES 11
40#define NLMPROC_LOCK_RES 12
41#define NLMPROC_CANCEL_RES 13
42#define NLMPROC_UNLOCK_RES 14
43#define NLMPROC_GRANTED_RES 15
44#define NLMPROC_NSM_NOTIFY 16
45#define NLMPROC_SHARE 20
46#define NLMPROC_UNSHARE 21
47#define NLMPROC_NM_LOCK 22
48#define NLMPROC_FREE_ALL 23
49
50#endif