Date: Thu, 5 Nov 1998 09:30:43 +0100 (MET) From: Nick Hibma <nick.hibma@jrc.it> To: Reinier Bezuidenhout <Reinier.Bezuidenhout@KryptoKom.DE> Cc: FreeBSD hackers mailing list <hackers@freebsd.org> Subject: Re: Malloc in the kernel Message-ID: <Pine.GSO.3.95q.981105092815.746D-100000@elect8> In-Reply-To: <199811041747.SAA05132@borg.kryptokom.de>
next in thread | previous in thread | raw e-mail | index | archive | help
DEFINE_MALLOC(M_MYMEM, "My mem", "My Memory (large)") (grep for it in the kernel sources, see also sys/malloc.h) and use that name. Nick > 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 :) > > Thanx > Reinier > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message > -- STA-ISIS, T.P.270, Joint Research Centre, 21020 Ispra, Italy 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?Pine.GSO.3.95q.981105092815.746D-100000>