Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Mar 2001 15:59:55 -0500 (EST)
From:      Anish A Patankar <patankar@cse.Buffalo.EDU>
To:        Mike Smith <msmith@freebsd.org>
Cc:        <questions@freebsd.org>
Subject:   Re: MALLOC 
Message-ID:  <Pine.SOL.4.30.0103251557200.16656-100000@pollux.cse.Buffalo.EDU>
In-Reply-To: <200103252052.f2PKqJl01544@mass.dis.org>

next in thread | previous in thread | raw e-mail | index | archive | help

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SOL.4.30.0103251557200.16656-100000>