From owner-freebsd-hackers@FreeBSD.ORG Mon Oct 17 12:07:38 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C220416A41F; Mon, 17 Oct 2005 12:07:38 +0000 (GMT) (envelope-from nick@taran.infoua.com.ua) Received: from taran.infoua.com.ua (2s-49.colo1.kv.wnet.ua [217.20.163.49]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2612943D48; Mon, 17 Oct 2005 12:07:36 +0000 (GMT) (envelope-from nick@taran.infoua.com.ua) Received: from taran.infoua.com.ua (localhost [127.0.0.1]) by taran.infoua.com.ua (8.13.4/8.13.4) with ESMTP id j9HC7Ytf001581; Mon, 17 Oct 2005 15:07:34 +0300 (EEST) (envelope-from nick@taran.infoua.com.ua) Received: (from nick@localhost) by taran.infoua.com.ua (8.13.4/8.13.4/Submit) id j9HC7Ye5001580; Mon, 17 Oct 2005 15:07:34 +0300 (EEST) (envelope-from nick) Date: Mon, 17 Oct 2005 15:07:34 +0300 From: Nick Strebkov To: freebsd-net@freebsd.org, freebsd-hackers@freebsd.org Message-ID: <20051017120734.GA820@taran.infoua.com.ua> Mail-Followup-To: Nick Strebkov , freebsd-net@freebsd.org, freebsd-hackers@freebsd.org References: <20051017114901.32412.qmail@web35711.mail.mud.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-u Content-Disposition: inline In-Reply-To: <20051017114901.32412.qmail@web35711.mail.mud.yahoo.com> User-Agent: Mutt/1.4.2.1i X-Operating-System: FreeBSD 6.0-BETA4 X-Real-Name: =?koi8-u?B?89TSxcLLz9cgSMnLz8zByiDhzsHU?= =?koi8-u?B?z8zYxdfJ3g==?= X-Mailman-Approved-At: Mon, 17 Oct 2005 12:39:53 +0000 Cc: Subject: Re: malloc() in kernel and increasing mbuf and cluster size X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Oct 2005 12:07:38 -0000 Hi, Kamal On 17.10.2005 04:49:01, kamal kc wrote: > this may be a trivial question for many of you > but i am confused in doing memory allocation in the > kernel. > > sys/malloc.h has function prototypes for malloc() > kern/kern_malloc.c defines the malloc() > > the malloc() definition is > > void * > malloc(size, type, flags) > unsigned long size; > struct malloc_type *type; > int flags; > > i understand the size and flags but what shall i > do with the malloc_type. man 9 malloc :-) -- Nick Strebkov Public key: http://humgat.org/~nick/pubkey.txt fpr: 552C 88D6 895B 6E64 F277 D367 8A70 8132 47F5 C1B6