I'm not sure there should be a way to do this (except perhaps through /etc/mtab or /etc/fstab ), because I understand that bindings are mounted as "hard links" in the mount space (not a file hierarchy), and there is no way (after the binding has been established) to distinguish between the source and target mount points.
And why does it ask? Bind mounts (IMHO) are mostly useful for hiding such things from the point of view of the application (otherwise you would use symbolic links or even hard links, in rare cases they are possible for directories)
And the mountpoint I just discovered thanks to your question seems to see something:
% grep /home /etc/fstab UUID=000008-0003-000c-9ecd-0f1a /home ext3 defaults 0 2 % grep /usr/src /etc/fstab /home/Src /usr/src none bind 0 0 % mountpoint /usr/src /usr/src is a mountpoint % mountpoint /home/Src /home/Src is not a mountpoint
In strace -ing mountpoint I found that it runs lstat , stat and fstat syscalls in directories like /usr/src and /usr/src/..
(added in November 2016 :)
See also /proc/mounts , for example. proc (5) and nftw (3)
source share