Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 May 2002 12:16:29 +0530
From:      shubhamr <shubhamr@malkauns.nsc.com>
To:        "questions@FreeBSD.ORG" <questions@freebsd.org>
Subject:   malloc() function
Message-ID:  <3CDCBE45.45EBB40D@malkauns.nsc.com>

next in thread | raw e-mail | index | archive | help
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.

thanx for your time.

Thankyou in advance
shubha



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?3CDCBE45.45EBB40D>