- 论坛徽章:
- 0
|
insmod scst_vdisk.ko后,出现
insmod: error inserting 'dev_handlers/scst_vdisk.ko': -1 Unknown symbol in module
用dmesg查看:
scst_vdisk: Unknown symbol cpuset_cpus_allowed
于是在scst_vdisk.c里加入了
EXPORT_SYMBOL_GPL(cpuset_cpus_allowed);
也试过
EXPORT_SYMBOL(cpuset_cpus_allowed);
均没有解决问题。
尝试查看: cat /proc/kallsyms | grep cpuset_cpus_allowed
显示:c04463b0 T cpuset_cpus_allowed
系统中有这个函数阿。
下面貼处涉及cpuset_cpus_allowed的源代码:
static int asyfresh_thread(void *data)
{
printk(KERN_ALERT "OK,thread start!\n");
struct scst_blockio_cache *scst_cache =(struct scst_blockio_cache *)(data);
struct asyfresh_work my_work;
cpumask_t cpus_allowed;
set_user_nice(current, 0);
cpus_allowed = cpuset_cpus_allowed(current);
set_cpus_allowed(current, cpus_allowed);
my_work.thr = scst_cache->vdisk_thr;
return __asyfresh_thread(&my_work);
}
求指点阿。。解决这个insmod的问题 |
|