Lines Matching refs:path
94 static char *tomoyo_get_absolute_path(const struct path *path, char * const buffer, in tomoyo_get_absolute_path() argument
101 pos = d_absolute_path(path, buffer, buflen - 1); in tomoyo_get_absolute_path()
103 struct inode *inode = d_backing_inode(path->dentry); in tomoyo_get_absolute_path()
237 char *tomoyo_realpath_from_path(const struct path *path) in tomoyo_realpath_from_path() argument
242 struct dentry *dentry = path->dentry; in tomoyo_realpath_from_path()
269 if (!path->mnt || in tomoyo_realpath_from_path()
272 pos = tomoyo_get_local_path(path->dentry, buf, in tomoyo_realpath_from_path()
276 pos = tomoyo_get_absolute_path(path, buf, buf_len - 1); in tomoyo_realpath_from_path()
282 pos = tomoyo_get_local_path(path->dentry, buf, in tomoyo_realpath_from_path()
306 struct path path; in tomoyo_realpath_nofollow() local
308 if (pathname && kern_path(pathname, 0, &path) == 0) { in tomoyo_realpath_nofollow()
309 char *buf = tomoyo_realpath_from_path(&path); in tomoyo_realpath_nofollow()
311 path_put(&path); in tomoyo_realpath_nofollow()