https://github.com/torvalds/linux
Raw File
Tip revision: 6b16351acbd415e66ba16bf7d473ece1574cf0bc authored by Linus Torvalds on 24 June 2012, 19:53:04 UTC
Linux 3.5-rc4
Tip revision: 6b16351
path.h
#ifndef _LINUX_PATH_H
#define _LINUX_PATH_H

struct dentry;
struct vfsmount;

struct path {
	struct vfsmount *mnt;
	struct dentry *dentry;
};

extern void path_get(struct path *);
extern void path_put(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 */
back to top