This source file includes following definitions.
- dcookie_register
- dcookie_unregister
- get_dcookie
1
2
3
4
5
6
7
8
9
10 #ifndef DCOOKIES_H
11 #define DCOOKIES_H
12
13
14 #ifdef CONFIG_PROFILING
15
16 #include <linux/dcache.h>
17 #include <linux/types.h>
18
19 struct dcookie_user;
20 struct path;
21
22
23
24
25
26
27 struct dcookie_user * dcookie_register(void);
28
29
30
31
32
33
34
35 void dcookie_unregister(struct dcookie_user * user);
36
37
38
39
40
41
42
43
44
45
46
47
48 int get_dcookie(const struct path *path, unsigned long *cookie);
49
50 #else
51
52 static inline struct dcookie_user * dcookie_register(void)
53 {
54 return NULL;
55 }
56
57 static inline void dcookie_unregister(struct dcookie_user * user)
58 {
59 return;
60 }
61
62 static inline int get_dcookie(const struct path *path, unsigned long *cookie)
63 {
64 return -ENOSYS;
65 }
66
67 #endif
68
69 #endif