mount.h 382 B

123456789101112131415161718
  1. #include <linux/mount.h>
  2. struct mount {
  3. struct list_head mnt_hash;
  4. struct vfsmount mnt;
  5. };
  6. static inline struct mount *real_mount(struct vfsmount *mnt)
  7. {
  8. return container_of(mnt, struct mount, mnt);
  9. }
  10. static inline int mnt_has_parent(struct mount *mnt)
  11. {
  12. return &mnt->mnt != mnt->mnt.mnt_parent;
  13. }
  14. extern struct mount *__lookup_mnt(struct vfsmount *, struct dentry *, int);