Date: Sun, 20 Sep 1998 16:03:22 -0600 (MDT) From: "Justin T. Gibbs" <gibbs@narnia.plutotech.com> To: Eivind Eklund <eivind@yes.no> Cc: hackers@FreeBSD.ORG Subject: Re: malloc()ing 64K physically contiguous buffer in kernel Message-ID: <199809202203.QAA03178@narnia.plutotech.com> In-Reply-To: <199809201745.NAA21711@skynet.ctr.columbia.edu> <19980920212910.21253@follo.net>
next in thread | previous in thread | raw e-mail | index | archive | help
In article <19980920212910.21253@follo.net> you wrote: > On Sun, Sep 20, 1998 at 01:45:24PM -0400, Bill Paul wrote: >> So: is there some way to allocate 64K of contiguous memory? Or even >> 8/16/32K? As long as I can hit one of the allowed buffer sizes I'll >> be happy, although I wanted 64K in order to reduce the likelyhood of >> receiver overruns. > > contigmalloc(). You should use bus_dma instead of contigmalloc, but I won't think badly of you until I've gotten off my duff and written the man pages for it. (bus_dma eventually uses contigmalloc to satisfy the request, but this may change (very likely on other platforms)). -- Justin To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199809202203.QAA03178>