From owner-freebsd-hackers@FreeBSD.ORG Sun Jan 13 18:34:39 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AACB816A419 for ; Sun, 13 Jan 2008 18:34:39 +0000 (UTC) (envelope-from fernando.apesteguia@gmail.com) Received: from hs-out-2122.google.com (hs-out-0708.google.com [64.233.178.248]) by mx1.freebsd.org (Postfix) with ESMTP id 5D40D13C447 for ; Sun, 13 Jan 2008 18:34:39 +0000 (UTC) (envelope-from fernando.apesteguia@gmail.com) Received: by hs-out-2122.google.com with SMTP id h53so1955842hsh.11 for ; Sun, 13 Jan 2008 10:34:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; bh=298RkZEJLDN6lOcS2CQyVl6wB2fELZ7kQMh/JTY3gWg=; b=MKmoGe5N6fg4uLOzHpynQX21txSdD1G795/Epc2mflOyMCTu1LSa9Vd163E8NggOmG/9aZ8OGxIdYbtJ+yoYxPGAGCa0dVkkdv878Iid1Mj4EOMe2QxJKwKEa/mavAgod/EDCB6dUkb5PDHzasiF9y+besC5D8llqqb+gnWNHHc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=kz97PK1tiGCLMXDK9tWmtTnX4qZIuH5Bt3CvyeUOh8VEo12G5SE5pjlOs8sIjNtltep8kkzxkhaxOJoJxHZbNguCed90jxi736NfWdkM4NMP17+2RXRAZDzgnY9qB/a5xSlS+s21I+GUgGRlt/oJNdyMxgJig4wQyvA9H6SFIkM= Received: by 10.150.211.19 with SMTP id j19mr2060607ybg.61.1200249278678; Sun, 13 Jan 2008 10:34:38 -0800 (PST) Received: by 10.150.152.8 with HTTP; Sun, 13 Jan 2008 10:34:38 -0800 (PST) Message-ID: <1bd550a00801131034o2999b85eu589cd8ee18a114ea@mail.gmail.com> Date: Sun, 13 Jan 2008 19:34:38 +0100 From: "=?ISO-8859-1?Q?Fernando_Apestegu=EDa?=" To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: mutex lock for filesystem list. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Jan 2008 18:34:39 -0000 Hi all, 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)? Thanks in advance