Date: Sun, 20 Sep 1998 21:29:10 +0200 From: Eivind Eklund <eivind@yes.no> To: Bill Paul <wpaul@skynet.ctr.columbia.edu>, hackers@FreeBSD.ORG Subject: Re: malloc()ing 64K physically contiguous buffer in kernel Message-ID: <19980920212910.21253@follo.net> In-Reply-To: <199809201745.NAA21711@skynet.ctr.columbia.edu>; from Bill Paul on Sun, Sep 20, 1998 at 01:45:24PM -0400 References: <199809201745.NAA21711@skynet.ctr.columbia.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
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(). The function itself is in src/sys/vm/vm_page.c Prototype is in src/sys/sys/malloc.h and src/sys/vm/vm_kern.h (I have no idea why it is both places). Examples of use in src/sys/dev/dpt/dpt_scsi.c src/sys/i386/i386/busdma_machdep.c src/sys/i386/isa/bs/bsif.c src/sys/i386/isa/sound/soundcard.c src/sys/i386/isa/gsc.c src/sys/i386/isa/if_sr.c src/sys/i386/isa/asc.c src/sys/i386/isa/isa.c src/sys/i386/isa/snd/dmabuf.c src/sys/kern/uipc_mbuf.c src/sys/pc98/pc98/pc98.c No man page, and no reference in malloc(9) :-( Eivind. 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?19980920212910.21253>