linux-surface/kernel/include/linux/path.h

22 lines
470 B
C
Raw Normal View History

2017-11-06 02:38:20 +00:00
/* SPDX-License-Identifier: GPL-2.0 */
2017-08-10 13:25:24 +00:00
#ifndef _LINUX_PATH_H
#define _LINUX_PATH_H
struct dentry;
struct vfsmount;
struct path {
struct vfsmount *mnt;
struct dentry *dentry;
2017-09-05 02:31:27 +00:00
} __randomize_layout;
2017-08-10 13:25:24 +00:00
extern void path_get(const struct path *);
extern void path_put(const struct path *);
static inline int path_equal(const struct path *path1, const struct path *path2)
{
return path1->mnt == path2->mnt && path1->dentry == path2->dentry;
}
#endif /* _LINUX_PATH_H */