From: Brian Haley <haley@zk3.dec.com>
Subject: Re: Kernel memory
Date: Fri, 10 Aug 2001 11:48:58 -0400 [thread overview]
Message-ID: <3B74026A.827F3D4F@zk3.dec.com> (raw)
In-Reply-To: 2f6bec0a.0108032232.74542b9d@posting.google.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
next prev parent reply other threads:[~2001-08-10 15:48 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 [this message]
2001-08-13 5:21 ` Ginny E. Kim
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