Re: slab cache problem

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

 



Try with SLAB_ATOMIC.

Amit

pankaj chauhan wrote:
hi all,

i am using linux 2.4.20 ( in RH 9 ).

i have a problem in using slab cache , the story goes
like this :

1. i have a structure record of 24 bytes, say :
struct record {
some feilds ( total 24 bytes)
}


2. i create a slab cache for this record , say
record_cache by using :

kmem_cache_t *record_cache;
record_cache = kmem_cache_create("record_cache",
sizeof(struct record) , 0 ,
SLAB_HWCACHE_ALIGN , NULL,NULL);
3.i allocate a new object from the cache :


new_rec = ( struct record *)kmem_cache_alloc(record_cache, SLAB_KERNEL);
HERE the system freezes and i get some messages on
console some of them are :


***
[<c020b490>] ip_rcv_finish [kernel] <0> kernel panic : Aii killing interrupt handler In interrupt handler not syncing
***


all these operations i am doing in a routine
registered at NF_IP_PRE_ROUTING hook of netfilter
frame work of linux .

plz tell me where i am wrong .

thanx in advance .

Rgds,
Pankaj cahuhan


________________________________________________________________________
Yahoo! India Insurance Special: Be informed on the best policies, services, tools and more. Go to: http://in.insurance.yahoo.com/licspecial/index.html


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/



-- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux