From owner-cvs-all@FreeBSD.ORG Wed Jul 28 16:53:26 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B383D16A4CE; Wed, 28 Jul 2004 16:53:26 +0000 (GMT) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 50EA643D2F; Wed, 28 Jul 2004 16:53:26 +0000 (GMT) (envelope-from robert@fledge.watson.org) Received: from fledge.watson.org (localhost [127.0.0.1]) by fledge.watson.org (8.12.11/8.12.11) with ESMTP id i6SGqQXR026275; Wed, 28 Jul 2004 12:52:26 -0400 (EDT) (envelope-from robert@fledge.watson.org) Received: from localhost (robert@localhost)i6SGqQwI026272; Wed, 28 Jul 2004 12:52:26 -0400 (EDT) (envelope-from robert@fledge.watson.org) Date: Wed, 28 Jul 2004 12:52:25 -0400 (EDT) From: Robert Watson X-Sender: robert@fledge.watson.org To: Garrett Wollman In-Reply-To: <200407281619.i6SGJwTh019305@khavrinen.lcs.mit.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: cvs-src@FreeBSD.ORG cc: Alfred Perlstein cc: src-committers@FreeBSD.ORG cc: cvs-all@FreeBSD.ORG Subject: Re: cvs commit: src/sys/sys _task.h X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Jul 2004 16:53:26 -0000 On Wed, 28 Jul 2004, Garrett Wollman wrote: > < said: > > > * Maxime Henrion [040728 02:19] wrote: > >> Or have a struct ifnet for kernel and a struct xifnet for userland, as we > >> do in other places. > > > That sounds more correct (xifnet). > > No. Everything that would legitimately be available in an xifnet > structure is already made available through other interfaces. The only > reason programs might need to look at a struct ifnet is because they're > mucking about in kernel memory, in which case they need the real one and > not a "sanitized" version. (This is why I moved struct ifnet to > in the first place.) Some applications and libraries declare their known violation of layering boundaries in the system by #define _KERNEL. Others structures have special #define's, such as COMPAT_43, _WANT_UCRED, etc. I'd be happy with either #define _KERNEL or #if defined(_KERNEL) || _WANT_IFNET. Robert N M Watson FreeBSD Core Team, TrustedBSD Projects robert@fledge.watson.org Principal Research Scientist, McAfee Research