|
Lines 44-50
Link Here
|
| 44 |
static int InodeOpReadlink(struct dentry *, char __user *, int); |
44 |
static int InodeOpReadlink(struct dentry *, char __user *, int); |
| 45 |
#endif |
45 |
#endif |
| 46 |
|
46 |
|
| 47 |
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 2, 0) |
47 |
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 5, 0) |
|
|
48 |
static const char *InodeOpGetlink(struct dentry *dentry, struct inode *inode, struct delayed_call *done); |
| 49 |
#elif LINUX_VERSION_CODE >= KERNEL_VERSION(4, 2, 0) |
| 48 |
static const char *InodeOpFollowlink(struct dentry *dentry, void **cookie); |
50 |
static const char *InodeOpFollowlink(struct dentry *dentry, void **cookie); |
| 49 |
#elif LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 13) |
51 |
#elif LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 13) |
| 50 |
static void *InodeOpFollowlink(struct dentry *dentry, struct nameidata *nd); |
52 |
static void *InodeOpFollowlink(struct dentry *dentry, struct nameidata *nd); |
|
Lines 63-69
Link Here
|
| 63 |
struct inode_operations LinkInodeOps = { |
65 |
struct inode_operations LinkInodeOps = { |
| 64 |
#endif |
66 |
#endif |
| 65 |
.readlink = InodeOpReadlink, |
67 |
.readlink = InodeOpReadlink, |
| 66 |
.follow_link = InodeOpFollowlink, |
68 |
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 5, 0) |
|
|
69 |
.get_link = InodeOpGetlink |
| 70 |
#else |
| 71 |
.follow_link = InodeOpFollowlink |
| 72 |
#endif |
| 67 |
}; |
73 |
}; |
| 68 |
|
74 |
|
| 69 |
/* |
75 |
/* |
|
Lines 223-229
Link Here
|
| 223 |
*---------------------------------------------------------------------------- |
229 |
*---------------------------------------------------------------------------- |
| 224 |
*/ |
230 |
*/ |
| 225 |
|
231 |
|
| 226 |
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 2, 0) |
232 |
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 5, 0) |
|
|
233 |
static const char *InodeOpGetlink(struct dentry *dentry, struct inode *inode, struct delayed_call *done) |
| 234 |
#elif LINUX_VERSION_CODE >= KERNEL_VERSION(4, 2, 0) |
| 227 |
static const char *InodeOpFollowlink(struct dentry *dentry, void **cookie) |
235 |
static const char *InodeOpFollowlink(struct dentry *dentry, void **cookie) |
| 228 |
#elif LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 13) |
236 |
#elif LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 13) |
| 229 |
static void * InodeOpFollowlink(struct dentry *dentry, // IN : dentry of symlink |
237 |
static void * InodeOpFollowlink(struct dentry *dentry, // IN : dentry of symlink |