Date: Sat, 11 May 2002 12:54:15 +0300 From: Giorgos Keramidas <keramida@ceid.upatras.gr> To: shubhamr <shubhamr@malkauns.nsc.com> Cc: "questions@FreeBSD.ORG" <questions@FreeBSD.ORG> Subject: Re: malloc() function Message-ID: <20020511095415.GA16168@hades.hell.gr> In-Reply-To: <3CDCBE45.45EBB40D@malkauns.nsc.com> References: <3CDCBE45.45EBB40D@malkauns.nsc.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020511095415.GA16168>