summaryrefslogtreecommitdiffstats
path: root/sys/modules/libmbpool
diff options
context:
space:
mode:
authorharti <harti@FreeBSD.org>2003-07-15 08:59:38 +0000
committerharti <harti@FreeBSD.org>2003-07-15 08:59:38 +0000
commit55e0e26eb44fbe187961180ff74c4d1c853a73a8 (patch)
treeeac7c97625d7814908b085bb062256b985ea60a7 /sys/modules/libmbpool
parent77121414dda7ed884fa4e22e6f13e2bc474a7c0b (diff)
downloadFreeBSD-src-55e0e26eb44fbe187961180ff74c4d1c853a73a8.zip
FreeBSD-src-55e0e26eb44fbe187961180ff74c4d1c853a73a8.tar.gz
Add a facility for devices, specifically network interfaces, that require
large to huge amounts of small or medium sized receive buffers. The problem with these situations is that they eat up the available DMA address space very quickly when using mbufs or even mbuf clusters. Additionally this facility provides a direct mapping between 32-bit integers and these buffers. This is needed for devices originally designed for 32-bit systems. Ususally the virtual address of the buffer is used as a handle to find the buffer as soon as it is returned by the card. This does not work for 64-bit machines and hence this mapping is needed.
Diffstat (limited to 'sys/modules/libmbpool')
-rw-r--r--sys/modules/libmbpool/Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/sys/modules/libmbpool/Makefile b/sys/modules/libmbpool/Makefile
new file mode 100644
index 0000000..efd15ec
--- /dev/null
+++ b/sys/modules/libmbpool/Makefile
@@ -0,0 +1,19 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../kern
+
+KMOD= libmbpool
+SRCS= subr_mbpool.c
+
+EXPORT_SYMS= mbp_create \
+ mbp_destroy \
+ mbp_alloc \
+ mbp_free \
+ mbp_ext_free \
+ mbp_card_free \
+ mbp_count \
+ mbp_get \
+ mbp_get_keep \
+ mbp_sync
+
+.include <bsd.kmod.mk>
OpenPOWER on IntegriCloud