Date: Wed, 04 Nov 1998 10:07:46 -0800 From: David Greenman <dg@root.com> To: Reinier Bezuidenhout <Reinier.Bezuidenhout@KryptoKom.DE> Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Malloc in the kernel Message-ID: <199811041807.KAA01814@implode.root.com> In-Reply-To: Your message of "Wed, 04 Nov 1998 18:47:55 %2B0100." <199811041747.SAA05132@borg.kryptokom.de>
next in thread | previous in thread | raw e-mail | index | archive | help
>If I want to malloc really large space in the kernel, say from >2k up to 1M or maybe more .... wat parameter should 'n >give to malloc ?? > > malloc(1000, ????, M_WAITOK); > >? M_DEVBUF > >if it is possible :) None of the above since allocations that large will likely be fatal if the kmem_map is even a little fragmented. You could do it at system startup time, however. Anyway, the type is not important. -DG David Greenman Co-founder/Principal Architect, The FreeBSD Project 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?199811041807.KAA01814>