[Techtalk] Where in the kernel is /proc/mount?
Jeff Dike
jdike at addtoit.com
Sun Jan 25 14:09:26 EST 2004
On Sun, Jan 25, 2004 at 05:02:31PM +0100, Dan Richter wrote:
> Does anyone happen to know where in the Linux kernel I can find the
> function that handles /proc/mounts - not /proc in general, but the
> /proc/mounts part? What's the function's name and what file is it in?
Start with fs/proc/base.c:mounts_open. That opens the file, telling
seq_file to produce the contents using mounts_op. That is defined in
fs/namespace.c, and uses m_start, m_next, m_stop, and show_vfsmnt to
control the passing of the mount structures back to the process.
Jeff
More information about the Techtalk
mailing list