From owner-freebsd-hackers Thu Nov 5 00:36:02 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id AAA04587 for freebsd-hackers-outgoing; Thu, 5 Nov 1998 00:31:17 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from mrelay.jrc.it (mrelay.jrc.it [139.191.1.65]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id AAA04567 for ; Thu, 5 Nov 1998 00:31:12 -0800 (PST) (envelope-from nick.hibma@jrc.it) Received: from elect8 (elect8.jrc.it [139.191.71.152]) by mrelay.jrc.it (LMC5692) with SMTP id JAA15625; Thu, 5 Nov 1998 09:30:45 +0100 (MET) Date: Thu, 5 Nov 1998 09:30:43 +0100 (MET) From: Nick Hibma X-Sender: n_hibma@elect8 Reply-To: Nick Hibma To: Reinier Bezuidenhout cc: FreeBSD hackers mailing list Subject: Re: Malloc in the kernel In-Reply-To: <199811041747.SAA05132@borg.kryptokom.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@freebsd.org Precedence: bulk X-Loop: FreeBSD.ORG 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