add_disk() make my driver's initialisation, thus kernel stall.

Valdis.Kletnieks at vt.edu Valdis.Kletnieks at vt.edu
Sun Mar 20 18:18:57 EDT 2016


On Sun, 20 Mar 2016 16:38:12 +0800, 张云 said:

> My memory disk block driver was compiled successfully.
> But when I insmod my module, initialisation stall at add_disk  in =
> setup_dev function.

> int major = 0;

Are you positive that this is both safe and usable?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 848 bytes
Desc: not available
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20160320/fef2ff83/attachment.bin 


More information about the Kernelnewbies mailing list