Lines Matching refs:path
35 struct path path; member
54 return (unsigned long)dcs->path.dentry; in dcookie_value()
92 static struct dcookie_struct *alloc_dcookie(struct path *path) in alloc_dcookie() argument
100 d = path->dentry; in alloc_dcookie()
105 dcs->path = *path; in alloc_dcookie()
106 path_get(path); in alloc_dcookie()
115 int get_dcookie(struct path *path, unsigned long *cookie) in get_dcookie() argument
127 if (path->dentry->d_flags & DCACHE_COOKIE) { in get_dcookie()
128 dcs = find_dcookie((unsigned long)path->dentry); in get_dcookie()
130 dcs = alloc_dcookie(path); in get_dcookie()
153 char * path; in SYSCALL_DEFINE() local
179 path = d_path(&dcs->path, kbuf, PAGE_SIZE); in SYSCALL_DEFINE()
181 if (IS_ERR(path)) { in SYSCALL_DEFINE()
182 err = PTR_ERR(path); in SYSCALL_DEFINE()
188 pathlen = kbuf + PAGE_SIZE - path; in SYSCALL_DEFINE()
191 if (copy_to_user(buf, path, pathlen)) in SYSCALL_DEFINE()
265 struct dentry *d = dcs->path.dentry; in free_dcookie()
271 path_put(&dcs->path); in free_dcookie()