From owner-cvs-all Sat Feb 8 5: 4: 1 2003 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 5D10737B401; Sat, 8 Feb 2003 05:03:58 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 01CAB43FBD; Sat, 8 Feb 2003 05:03:58 -0800 (PST) (envelope-from phk@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h18D3vbv003555; Sat, 8 Feb 2003 05:03:57 -0800 (PST) (envelope-from phk@repoman.freebsd.org) Received: (from phk@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h18D3vQY003554; Sat, 8 Feb 2003 05:03:57 -0800 (PST) Message-Id: <200302081303.h18D3vQY003554@repoman.freebsd.org> From: Poul-Henning Kamp Date: Sat, 8 Feb 2003 05:03:57 -0800 (PST) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org, legacy-committers@FreeBSD.org Subject: cvs commit: src/sys/conf files src/sys/geom geom.h geom_dev.c geom_int.h geom_io.c geom_kern.c geom_stats.c geom_stats.h geom_subr.c src/sys/geom/bde g_bde_lock.c g_bde_work.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG phk 2003/02/08 05:03:57 PST Modified files: sys/conf files sys/geom geom.h geom_dev.c geom_int.h geom_io.c geom_kern.c geom_subr.c sys/geom/bde g_bde_lock.c g_bde_work.c Added files: sys/geom geom_stats.c geom_stats.h Log: Move the g_stat struct to its own .h file, we will export it to other code. Insted of embedding a struct g_stat in consumers and providers, merely include a pointer. Remove a couple of includes now unneeded. Add a special allocator for struct g_stat. This allocator will allocate entire pages and hand out g_stat functions from there. The "id" field indicates free/used status. Add "/dev/geom.stats" device driver whic exports the pages from the allocator to userland with mmap(2) in read-only mode. This mmap(2) interface should be considered a non-public interface and the functions in libgeom (not yet committed) should be used to access the statistics data. Revision Changes Path 1.757 +1 -0 src/sys/conf/files 1.8 +0 -1 src/sys/geom/bde/g_bde_lock.c 1.6 +0 -1 src/sys/geom/bde/g_bde_work.c 1.43 +3 -24 src/sys/geom/geom.h 1.43 +2 -1 src/sys/geom/geom_dev.c 1.10 +5 -0 src/sys/geom/geom_int.h 1.26 +23 -22 src/sys/geom/geom_io.c 1.20 +2 -0 src/sys/geom/geom_kern.c 1.1 +145 -0 src/sys/geom/geom_stats.c (new) 1.1 +56 -0 src/sys/geom/geom_stats.h (new) 1.29 +7 -3 src/sys/geom/geom_subr.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message