Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.Hawaii.Edu!news.uoregon.edu!hammer.uoregon.edu!hunter.premier.net!news.mathworks.com!news.kei.com!news.thenet.net!wlbr!news.cerf.net!newsserver.sdsc.edu!duck.sdsc.edu!tony From: tony@duck.sdsc.edu (Tony Sterrett) Newsgroups: comp.unix.programmer,comp.unix.internals,comp.unix.bsd.freebsd.misc,comp.unix.pc-clone.32bit Subject: Allocating large blocks for memory Date: 17 Nov 1996 01:37:11 GMT Organization: San Diego Supercomputer Center @ UCSD Lines: 19 Distribution: world Message-ID: <56lq87$in7@rosebud.sdsc.edu> NNTP-Posting-Host: duck.sdsc.edu Xref: euryale.cc.adfa.oz.au comp.unix.programmer:46406 comp.unix.internals:11286 comp.unix.bsd.freebsd.misc:31110 comp.unix.pc-clone.32bit:9579 Hello everybody. I am using FreeBSD 2.1.5 on a Pentium(PCI). I need to access a hardware card which writes 1MB buffers in to the address I provide it. The rub is that this 1MB must be contigous. I have not been able to determine a memory allocation routine which can give a this size block of memory. The idea of the program is to give the hardware a pointer and when it interrupts read that pointer. I also need to have another 1MB of contigous memeory ready for the hardware so this means I have to develop some sort of mem block management routine. Can anyone offer any suggestion? Thanks in advance. Tony