From owner-freebsd-questions Fri May 10 23:42:59 2002 Delivered-To: freebsd-questions@freebsd.org Received: from natsemi-bh.nsc.com (natsemi-bh.nsc.com [204.163.202.66]) by hub.freebsd.org (Postfix) with ESMTP id 939C537B408 for ; Fri, 10 May 2002 23:42:55 -0700 (PDT) Received: (from uucp@localhost) by natsemi-bh.nsc.com (8.8.8/8.6.11) id XAA29292 for ; Fri, 10 May 2002 23:42:55 -0700 (PDT) Received: from nsc.nsc.com(139.187.81.1) by natsemi-bh.nsc.com via smap (4.1) id xma029283; Fri, 10 May 02 23:42:30 -0700 Received: from malkauns.malkauns.nsc.com (malkauns.nsc.com [139.187.83.131]) by nsc.nsc.com (8.10.2+Sun/8.10.2) with SMTP id g4B6gLS01764 for ; Fri, 10 May 2002 23:42:23 -0700 (PDT) Received: from malkauns.nsc.com by malkauns.malkauns.nsc.com (SMI-8.6/SMI-SVR4) id MAA25756; Sat, 11 May 2002 12:17:41 +0530 Message-ID: <3CDCBE45.45EBB40D@malkauns.nsc.com> Date: Sat, 11 May 2002 12:16:29 +0530 From: shubhamr Reply-To: shubhamr@malkauns.nsc.com X-Mailer: Mozilla 4.7 [en] (WinNT; I) X-Accept-Language: en MIME-Version: 1.0 To: "questions@FreeBSD.ORG" Subject: malloc() function Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 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