From owner-freebsd-arch@FreeBSD.ORG Mon Oct 3 02:31:43 2011 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CBEA5106564A for ; Mon, 3 Oct 2011 02:31:43 +0000 (UTC) (envelope-from mdf356@gmail.com) Received: from mail-qy0-f175.google.com (mail-qy0-f175.google.com [209.85.216.175]) by mx1.freebsd.org (Postfix) with ESMTP id 858428FC0A for ; Mon, 3 Oct 2011 02:31:43 +0000 (UTC) Received: by qyk10 with SMTP id 10so1806974qyk.13 for ; Sun, 02 Oct 2011 19:31:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=3yFBd2moTl7bbAGq6VXYGVs857rI4lmIdc/fRgRyRkg=; b=qBBCY2yHgN3L+w0bgEet6bB1bZwp/jpiwzKJFz5HTuXdEL9S0sy6R6rUqiByJVAaQd oH6avh7aa+KVWE6PZj88zSRe2yHspwbFHVddCkUwfsaSND18iiVUxZy08qPhDR+2mhRm GlivO0sOFzAy81BySpemBqiaAOMvydMsyq4uw= MIME-Version: 1.0 Received: by 10.229.240.8 with SMTP id ky8mr10595746qcb.53.1317607441352; Sun, 02 Oct 2011 19:04:01 -0700 (PDT) Sender: mdf356@gmail.com Received: by 10.229.83.196 with HTTP; Sun, 2 Oct 2011 19:04:01 -0700 (PDT) In-Reply-To: <4E8915B3.5050607@delphij.net> References: <4E8915B3.5050607@delphij.net> Date: Sun, 2 Oct 2011 19:04:01 -0700 X-Google-Sender-Auth: Ot5TKW7erIyEhpu-PgllBDtsuIk Message-ID: From: mdf@FreeBSD.org To: d@delphij.net Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-arch@freebsd.org Subject: Re: Sharing a file between kernel and userland? X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Oct 2011 02:31:43 -0000 > Am I understanding correctly that there is currently no way to have a > file that is shared between libkern and libc? =A0Or is there already a > clean way to do that? It's currently done with libsbuf -- sys/kern/subr_sbuf.c is built for the kernel and for lib/libsbuf. See lib/libsbuf/Makefile. Cheers, matthew