Date: Wed, 23 Jul 1997 16:15:03 -0700 (PDT) From: Jim Shankland <jas@flyingfox.com> To: hackers@freebsd.org Subject: getting physically contiguous memory in the kernel Message-ID: <199707232315.QAA10162@biggusdiskus.flyingfox.com>
next in thread | raw e-mail | index | archive | help
Is there an easy way to get physically contiguous memory in the FreeBSD kernel? The de driver calls malloc() to obtain a buffer, part of which must be physically contiguous; this buffer has now grown to be > 4K, causing the transmit descriptors to span a page boundary. When the 2 pages are not physically contiguous, the driver breaks. For now, I've workes around this by malloc-ing the transmit and receive descriptor arrays separately; this should work, as they're individually less than 4KB. But is there a better way? Jim Shankland Flying Fox Computer Systems, Inc.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199707232315.QAA10162>