From mboxrd@z Thu Jan 1 00:00:00 1970 From: Valdis.Kletnieks@vt.edu (Valdis.Kletnieks at vt.edu) Date: Sun, 20 Mar 2016 18:18:57 -0400 Subject: add_disk() make my driver's initialisation, thus kernel stall. In-Reply-To: <690BE234-E228-46C7-AC88-514352BFF33D@163.com> References: <690BE234-E228-46C7-AC88-514352BFF33D@163.com> Message-ID: <96687.1458512337@turing-police.cc.vt.edu> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org 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