linux-device-driver – add_disk()在insmod上挂起

linux-device-driver – add_disk()在insmod上挂起

我正在编写一个 Linux块设备驱动程序,我有很多初始化工作.但是,当我最终调用add_disk()时,模块在insmod期间挂起. 有问题的片段在这里: set_capacity(gendisk, dev-nsectors);add_disk(gendisk);//this line is never reached 这似乎是在添加磁盘之前使用set_

联系我们

联系我们

0577-28828765

在线咨询: QQ交谈

邮箱: xwei067@foxmail.com

工作时间:周一至周五,9:00-17:30,节假日休息

返回顶部