Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
* Kernel memory
@ 2001-08-02  8:02 Ginny E. Kim
  2001-08-02 13:01 ` Bob Harris
  0 siblings, 1 reply; 8+ messages in thread
From: Ginny E. Kim @ 2001-08-02  8:02 UTC (permalink / 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?


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2001-08-13 18:47 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2001-08-13 18:47             ` Brian Haley

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