]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Move the g_stat struct to its own .h file, we will export it to other code.
authorphk <phk@FreeBSD.org>
Sat, 8 Feb 2003 13:03:57 +0000 (13:03 +0000)
committerphk <phk@FreeBSD.org>
Sat, 8 Feb 2003 13:03:57 +0000 (13:03 +0000)
commit04a4ba381f551a8fb24d018a99d63e4b8a4eec00
treeee0ea82e7a7c15d53378207492946755ff1ca6b9
parent15f4f6a52b122bc25685c03d547db8506a57b97a
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 <sys/time.h> 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.
sys/conf/files
sys/geom/bde/g_bde_lock.c
sys/geom/bde/g_bde_work.c
sys/geom/geom.h
sys/geom/geom_dev.c
sys/geom/geom_int.h
sys/geom/geom_io.c
sys/geom/geom_kern.c
sys/geom/geom_stats.c [new file with mode: 0644]
sys/geom/geom_stats.h [new file with mode: 0644]
sys/geom/geom_subr.c