return osi_linux_alloc(x, 1);
#else
size = x;
-#ifdef AFS_OBSD_ENV
- MALLOC(tm, struct osimem *, size, M_AFSGENERIC, M_WAITOK);
-#else
tm = (struct osimem *) AFS_KALLOC(size);
-#endif
#ifdef AFS_SUN_ENV
if (!tm)
osi_Panic("osi_Alloc: Couldn't allocate %d bytes; out of memory!\n",
size = x;
AFS_STATS(afs_stats_cmperf.OutStandingAllocs++);
AFS_STATS(afs_stats_cmperf.OutStandingMemUsage += x);
-#ifdef AFS_OBSD_ENV
- MALLOC(tm, struct osimem *, size, M_AFSGENERIC, 0);
-#else
tm = (struct osimem *) AFS_KALLOC_NOSLEEP(size);
-#endif
return (void *) tm;
}
AFS_STATS(afs_stats_cmperf.OutStandingMemUsage -= asize);
#if defined(AFS_LINUX20_ENV)
osi_linux_free(x);
-#elif defined(AFS_OBSD_ENV)
- FREE(x, M_AFSGENERIC);
#else
AFS_KFREE((struct osimem *)x, asize);
#endif