[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

about SLAB.C



 
----- Original Message -----
From: fulixiong
Sent: Tuesday, December 04, 2001 4:28 PM
Subject: about SLAB.C

hello
 
   I  develop a pci driver in redhat linux , the kernel version is 2.4.7.
that need to allocate a 2 M DMA buffer . Linux limit 128 k,
so I  update slab.c and  content
 :
 
#if  PAGE_SIZE=4096
    {512,NULL,NULL},// Older is {32,NULL,NULL}
#endif
    {64,NULL,NULL},
    {128,NULL,NULL},
 ..............
 
then rebuild the kernel, reboot ...
it has a error  :
 
"kmem_cache_create :couldn't create cache 512 ."
 
can you help me ?
 
best regards
 
fulixiong .