Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
From: banny52@yahoo.com (Ginny E. Kim)
Subject: Re: Kernel memory
Date: 12 Aug 2001 22:21:06 -0700	[thread overview]
Message-ID: <2f6bec0a.0108122121.14dc3350@posting.google.com> (raw)
In-Reply-To: 3B74026A.827F3D4F@zk3.dec.com

Brian Haley <haley@zk3.dec.com> wrote in message news:<3B74026A.827F3D4F@zk3.dec.com>...
> "Ginny E. Kim" wrote:
> 
> >
> > > > > X  int table_init()
> > > > > X  {
> > > > > X          MALLOC(table, state_t **, sizeof(state_t *) * statesize,
> > > > > X  M_TEMP, M_NOWAIT);
> > > > > X              ......................
> > > > > X  }
> >
> > I used MALLOC_VAR(), but, I got same result such as MALLOC()....
> > Is there any other solution like increasing kernel memory?
> 
> Well, you are using the M_NOWAIT flag, which tells malloc that if it
> can't fulfill your request *immediately* then it must return NULL.
> Can you change it to use M_WAITOK?
> 
> -Brian
> 
> -----------------------------------------------
> Brian P. Haley
> Tru64 UNIX Networking Group

Thank you for your advice.
I figured out using M_WAITOK. what's difference of two within kernel?
M_NOWAIT option has no problem.
Can you explain their meaning more detaily, or recommend related documents?


  reply	other threads:[~2001-08-13  5:21 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-08-02  8:02 Kernel memory Ginny E. Kim
2001-08-02 13:01 ` Bob Harris
2001-08-03  4:55   ` Ginny E. Kim
2001-08-03 13:43     ` Brian Haley
2001-08-04  6:32       ` Ginny E. Kim
2001-08-10 15:48         ` Brian Haley
2001-08-13  5:21           ` Ginny E. Kim [this message]
2001-08-13 18:47             ` Brian Haley
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox