path.h 412 B

1234567891011121314151617181920
  1. #ifndef _LINUX_PATH_H
  2. #define _LINUX_PATH_H
  3. struct dentry;
  4. struct vfsmount;
  5. struct path {
  6. struct vfsmount *mnt;
  7. struct dentry *dentry;
  8. };
  9. extern void path_get(const struct path *);
  10. extern void path_put(const struct path *);
  11. static inline int path_equal(const struct path *path1, const struct path *path2)
  12. {
  13. return path1->mnt == path2->mnt && path1->dentry == path2->dentry;
  14. }
  15. #endif /* _LINUX_PATH_H */