Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Jan 2008 20:46:54 +0100
From:      "=?ISO-8859-1?Q?Fernando_Apestegu=EDa?=" <fernando.apesteguia@gmail.com>
To:        "Ed Schouten" <ed@fxq.nl>
Cc:        FreeBSD Hackers <freebsd-hackers@freebsd.org>
Subject:   Re: mutex lock for filesystem list.
Message-ID:  <1bd550a00801181146s1ee3fd44x309d7ee9e8db92f9@mail.gmail.com>
In-Reply-To: <20080113194954.GG80300@hoeg.nl>
References:  <1bd550a00801131034o2999b85eu589cd8ee18a114ea@mail.gmail.com> <20080113194954.GG80300@hoeg.nl>

next in thread | previous in thread | raw e-mail | index | archive | help
On 1/13/08, Ed Schouten <ed@fxq.nl> wrote:
> * Fernando Apestegu=EDa <fernando.apesteguia@gmail.com> wrote:
> > I'm trying to write a patch to add a file to the linprocfs. This file
> > provides the list of filesystems present in the kernel.
> >
> > Though I was able to create the file and traverse the list, it's
> > clearly unsafe. I would like to know wich semaphore I should lock
> > cause I can't find it in the kernel code.
> >
> > In addition I'd like to know if there is a book similar to the
> > Understanding the Linux kernel, but for freebsd. What is the best
> > information source to get introduced in the freebsd kernel programming
> > (apart of the code itself)?
>
> You're probably looking through the mountlist? Then you need to make
> sure you lock the mountlist_mtx. See src/sys/kern/vfs_mount.c.

Hi,

My apologies for the delay with the reply by due to a failure in my
DSL line, I had no internet connection for several days :(

Actually I'm using vfsconf list. What's the difference between
mountlist and the one I'm using?

Best Regards

>
> --
>  Ed Schouten <ed@fxq.nl>
>  WWW: http://g-rave.nl/
>
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1bd550a00801181146s1ee3fd44x309d7ee9e8db92f9>