From: banny52@yahoo.com (Ginny E. Kim)
Subject: Kernel memory
Date: 2 Aug 2001 01:02:49 -0700 [thread overview]
Message-ID: <2f6bec0a.0108020002.29080aa8@posting.google.com> (raw)
--------------------
#if defined(__DECC) && __DECC_VER >= 50860003
#define FINDINDEX(size) (__builtin_isconstant(size) ?
BUCKETINDEX(size) : -1)
#else
#define FINDINDEX(size) BUCKETINDEX(size)
#endif
#define MALLOC(space, cast, size, type, flags) \
(space) = (cast)malloc((u_long)(size), FINDINDEX(size), type,
flags)
int statesize = 5737;
static state_t **table = NULL;
int table_init()
{
MALLOC(table, state_t **, sizeof(state_t *) * statesize,
M_TEMP, M_NOWAIT);
if (table != NULL)
bzero((char *)table, statesize * sizeof(state_t *));
else {
return -1;
}
......................
}
-------------------------------------------
In this case, if statesize is 5737, I can't have the system to
allocate memory using MALLOC. if statesize is 127 or 100, system can
allocate memory using MALLOC.
This program is a part of the loadable kernel module in Tru64UNIX 5.1.
Do Tru64UNIX V5.1 have the option that kernel memory to be allocate is
limited?
If then, how can it be increased?
next reply other threads:[~2001-08-02 8:02 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-08-02 8:02 Ginny E. Kim [this message]
2001-08-02 13:01 ` Kernel memory 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
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