Whamcloud - gitweb
LUDOC-296 protocol: Rearrange presentation to be more top-down
[doc/protocol.git] / struct_ldlm_intent.txt
1 LDLM Intent
2 ^^^^^^^^^^^
3 [[struct-ldlm-intent]]
4
5 A lock request can include an 'intent' operation. Which operation is
6 encoded in the 'ldlm_intent' 'opc'.
7
8 [source,c]
9 ----
10 struct ldlm_intent {
11         __u64 opc;
12 };
13 ----
14
15 The available operations are:
16
17 [source,c]
18 ----
19 #define IT_OPEN     (1 << 0)
20 #define IT_CREAT    (1 << 1)
21 #define IT_READDIR  (1 << 2)
22 #define IT_GETATTR  (1 << 3)
23 #define IT_LOOKUP   (1 << 4)
24 #define IT_UNLINK   (1 << 5)
25 #define IT_TRUNC    (1 << 6)
26 #define IT_GETXATTR (1 << 7)
27 #define IT_EXEC     (1 << 8)
28 #define IT_PIN      (1 << 9)
29 #define IT_LAYOUT   (1 << 10)
30 #define IT_QUOTA_DQACQ (1 << 11)
31 #define IT_QUOTA_CONN  (1 << 12)
32 #define IT_SETXATTR (1 << 13)
33 ----
34