This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

dm6446的linux的字符驱动问题



请问一下,我注册了一个设备,但是怎么在/dev目录下找不到这个设备的节点啊。注册函数是:

static void mt9v136_setup_cdev(struct mt9v136_chip_info *dev,int index)
{
int err,mt9v136_dev=MKDEV(mt9v136_major,index);
cdev_init(&dev->cdev,&mt9v136_fops);
dev->cdev.owner=THIS_MODULE;
err=cdev_add(&dev->cdev,mt9v136_dev,1);
if(err)
printk(KERN_NOTICE "error %d adding mt9v136 %d/n",err,index);
}