From owner-freebsd-arch@FreeBSD.ORG Wed Jul 30 13:51:28 2003 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1D77A37B404 for ; Wed, 30 Jul 2003 13:51:28 -0700 (PDT) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id E559143FB1 for ; Wed, 30 Jul 2003 13:51:25 -0700 (PDT) (envelope-from robert@fledge.watson.org) Received: from fledge.watson.org (localhost [127.0.0.1]) by fledge.watson.org (8.12.9/8.12.9) with ESMTP id h6UKoSai053027 for ; Wed, 30 Jul 2003 16:50:28 -0400 (EDT) (envelope-from robert@fledge.watson.org) Received: from localhost (robert@localhost)h6UKoSS1053024 for ; Wed, 30 Jul 2003 16:50:28 -0400 (EDT) Date: Wed, 30 Jul 2003 16:50:28 -0400 (EDT) From: Robert Watson X-Sender: robert@fledge.watson.org To: arch@FreeBSD.org Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Breaking out kern_mac.c into multiple files X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Jul 2003 20:51:28 -0000 As the scope of the MAC Framework has grown, so has kern_mac.c. It's reached the point where breaking it into separate files would make it a lot easier to read, by virtue of logically grouping its exposed functions, APIs, etc. Similarly scoped extension frameworks, such as NetGraph and GEOM, have opted to go into sys/$framework, with files named similarly. My leaning was to do something similar -- add sys/mac, and then have mac_framework.c, mac_net.c, mac_sysvipc.c, etc. I probably won't get to this for a bit because I want to avoid introducing large numbers of conflicts for our outstanding changes, but I was going to poll for general interest in placement, naming, etc. Some of the other choices would be to keep it in kern/, but rename (similar to the System V IPC bits, VFS bits, et al). Robert N M Watson FreeBSD Core Team, TrustedBSD Projects robert@fledge.watson.org Network Associates Laboratories