From owner-freebsd-questions Sat May 11 3:41:27 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by hub.freebsd.org (Postfix) with ESMTP id 5F08937B403 for ; Sat, 11 May 2002 03:41:22 -0700 (PDT) Received: from hades.hell.gr (patr530-a131.otenet.gr [212.205.215.131]) by mailsrv.otenet.gr (8.12.3/8.12.3) with ESMTP id g4BAdXG3009235; Sat, 11 May 2002 13:41:10 +0300 (EEST) Received: from hades.hell.gr (hades [127.0.0.1]) by hades.hell.gr (8.12.3/8.12.3) with ESMTP id g4B9sGg5016308; Sat, 11 May 2002 12:54:16 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from charon@localhost) by hades.hell.gr (8.12.3/8.12.2/Submit) id g4B9sGEf016307; Sat, 11 May 2002 12:54:16 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Sat, 11 May 2002 12:54:15 +0300 From: Giorgos Keramidas To: shubhamr Cc: "questions@FreeBSD.ORG" Subject: Re: malloc() function Message-ID: <20020511095415.GA16168@hades.hell.gr> References: <3CDCBE45.45EBB40D@malkauns.nsc.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3CDCBE45.45EBB40D@malkauns.nsc.com> User-Agent: Mutt/1.3.28i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 2002-05-11 12:16, shubhamr wrote: > hi. > For kernel memory allocation,say for example,to allocate a private data > structure within a kernel module,Is it right to use M_DEVBUF option? > looks like M_DEVBUF is only for device buffers.Can I use the same thing > for a private structure? Can you also guide me to a document or > something to know what M_DEVBUF and the rest of the options available?I > tried using man malloc,but that givess just a Clibrary function and not > for a kernel module.I tried manning for contigmalloc and cud not get it. $ man -k malloc ... malloc(9), MALLOC(9), free(9), FREE(9) - kernel memory management routines Try reading malloc(9). - Giorgos To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message