From owner-freebsd-questions Sun Mar 25 13: 0: 2 2001 Delivered-To: freebsd-questions@freebsd.org Received: from pollux.cse.Buffalo.EDU (pollux.cse.Buffalo.EDU [128.205.35.2]) by hub.freebsd.org (Postfix) with ESMTP id A8D3737B71D; Sun, 25 Mar 2001 12:59:56 -0800 (PST) (envelope-from patankar@cse.Buffalo.EDU) Received: (from patankar@localhost) by pollux.cse.Buffalo.EDU (8.10.1/8.10.1) id f2PKxtQ16684; Sun, 25 Mar 2001 15:59:55 -0500 (EST) Date: Sun, 25 Mar 2001 15:59:55 -0500 (EST) From: Anish A Patankar To: Mike Smith Cc: Subject: Re: MALLOC In-Reply-To: <200103252052.f2PKqJl01544@mass.dis.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, thanks for the prompt reply. I think I cannot use malloc and free as I am programming in the kernel, so have to use MALLOC and FREE.The man page shows.. MALLOC(space, cast, unsigned long size, struct malloc_type *type, int flags) But then it goes on to describe the MWAIT and other such flags.. I mean i cannot make out the no. of arguments to be passed to MALLOC..and what would they stand for.. thanks Anish. On Sun, 25 Mar 2001, Mike Smith wrote: > > > > Hi, > > MALLOC and FREE at the kernel level, what arguments does it take? > > the man page does not seem to help much/ > > MALLOC and FREE are obsolete. Use malloc and free instead. However, I'm > not sure what you mean by "the manpage does not seem to help much"; your > comment doesn't seem to help much either. 8) A more specific description > of your problem might yield a better answer. > > -- > ... every activity meets with opposition, everyone who acts has his > rivals and unfortunately opponents also. But not because people want > to be opponents, rather because the tasks and relationships force > people to take different points of view. [Dr. Fritz Todt] > V I C T O R Y N O T V E N G E A N C E > > > ============================================================================= Anish Patankar Graduate Teaching Assistant Computer Science and Engineering State University of New York at Buffalo Tel: O- (716) 645-3771 H- (716) 835-9951 ============================================================================ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message