2008-05-20 04:45:31 a problem about kmalloc()
sj tian (CHINA)
Message: 56041
I use kmallo( ) to apply about 3K memory in init function of my driver module, compilation is ok, But when insmod this driver module, the system show:
fpga: Unknown symbol _malloc_sizes
insmod: cannot insert 'fpga.ko': Unknown symbol in module (-1): No such file or directory.
why? is it kmallo( ) can not apply so large memory ?
QuoteReplyEditDelete
2008-05-20 05:21:41 Re: a problem about kmalloc()
Yi Li (CHINA)
Message: 56043
Didn't you see any warning when you build the module?
You can check "cat /proc/kallsyms | grep malloc_sizes " also "objdump" your module and compare the result.
QuoteReplyEditDelete
2008-05-20 05:48:59 Re: a problem about kmalloc()
sj tian (CHINA)
Message: 56047
thanks! It can work!