From owner-cvs-src@FreeBSD.ORG Thu Sep 2 20:48:33 2004 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DA25916A4CF for ; Thu, 2 Sep 2004 20:48:33 +0000 (GMT) Received: from mail4.speakeasy.net (mail4.speakeasy.net [216.254.0.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id 91DA343D5E for ; Thu, 2 Sep 2004 20:48:33 +0000 (GMT) (envelope-from jmg@hydrogen.funkthat.com) Received: (qmail 21442 invoked from network); 2 Sep 2004 20:48:33 -0000 Received: from gate.funkthat.com (HELO hydrogen.funkthat.com) ([69.17.45.168]) (envelope-sender ) by mail4.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 2 Sep 2004 20:48:33 -0000 Received: from hydrogen.funkthat.com (unefez@localhost.funkthat.com [127.0.0.1])i82KmWuU005026; Thu, 2 Sep 2004 13:48:32 -0700 (PDT) (envelope-from jmg@hydrogen.funkthat.com) Received: (from jmg@localhost) by hydrogen.funkthat.com (8.12.10/8.12.10/Submit) id i82KmVxm005025; Thu, 2 Sep 2004 13:48:31 -0700 (PDT) Date: Thu, 2 Sep 2004 13:48:31 -0700 From: John-Mark Gurney To: Julian Elischer Message-ID: <20040902204831.GJ29902@funkthat.com> References: <200409011829.i81ITvq9017808@repoman.freebsd.org> <4136333C.8090207@elischer.org> <20040902175930.GA8551@dragon.nuxi.com> <41376280.6050801@elischer.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <41376280.6050801@elischer.org> User-Agent: Mutt/1.4.1i X-Operating-System: FreeBSD 4.2-RELEASE i386 X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html cc: src-committers@FreeBSD.org cc: cvs-src@FreeBSD.org cc: cvs-all@FreeBSD.org cc: obrien@FreeBSD.org cc: Dag-Erling Sm?rgrav cc: Julian Elischer Subject: Re: cvs commit: src/sys/i386/include param.h X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: John-Mark Gurney List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Sep 2004 20:48:34 -0000 Julian Elischer wrote this message on Thu, Sep 02, 2004 at 11:12 -0700: > David O'Brien wrote: > >What it really means is we haven't provided a sufficient API for userland > >to get a kernel data that obviously is needed. > > yes.. it's tricky.. > should we define a "_KERNEL_INTERFACE" or something? > how about _REALLY_IS_KERNEL > which defines _KERNEL > so if you just need the interface you define _KERNEL > but include files cna protect REALLY internal stuff with "#ifdef > _REALLY_IS_KERNEL The question first is, do we want to use the same structure in userland and kernel.. If we do, then it should not be under _KERNEL, and be publicly exported... If we don't need the entire structure, then we define the common structure, and write a function or two that converts between the two structures... like struct xfile, struct xprision, struct xvfsconf, struct xsocket, struct xucred, struct xunpcb, struct xunpgen, struct xvnode... -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."