LWN: Comments on "The cdev interface" https://lwn.net/Articles/195805/ This is a special feed containing comments posted to the individual LWN article titled "The cdev interface". en-us Fri, 19 Sep 2025 11:19:22 +0000 Fri, 19 Sep 2025 11:19:22 +0000 https://www.rssboard.org/rss-specification lwn@lwn.net The cdev interface https://lwn.net/Articles/656098/ https://lwn.net/Articles/656098/ netilovefm <div class="FormattedComment"> now I have a question. I want to use this char_dev. <br> <p> I see chrdev_open() function, in that function, <br> <p> why in this function calls request_module() if not matching cdev and i_node-&gt;i_cdev<br> <p> cdev is already added in system(usually module_init()function) then why call module again?<br> <p> help me and answer plz T.T <br> <p> <p> </div> Sun, 30 Aug 2015 08:49:38 +0000 The cdev interface https://lwn.net/Articles/391773/ https://lwn.net/Articles/391773/ nosf <div class="FormattedComment"> <font class="QuotedText">&gt;* In order the device to actually apear in the file system, you have to &gt;call device_create (class, parent_dev, devno, device_name).</font><br> <font class="QuotedText">&gt;* In order to call device_create you need to have a device class object: &gt;either use one of the existing classes, or create your own with create_class (THIS_MODULE, class_name)</font><br> <p> I think this is for sysfs only.<br> </div> Fri, 11 Jun 2010 10:51:38 +0000 The cdev interface https://lwn.net/Articles/361366/ https://lwn.net/Articles/361366/ chandan_raka <div class="FormattedComment"> Do I need to do mknod in order to add an entry into /dev?<br> <p> Is there any way to create device in /dev without doing mknod from user space.<br> I tried to use device_create does didnt work.<br> </div> Wed, 11 Nov 2009 11:17:35 +0000 The cdev interface https://lwn.net/Articles/308644/ https://lwn.net/Articles/308644/ zap <div class="FormattedComment"> This article seems a bit outdated, so I'll add my two cents here.<br> <p> * cdev_add will return -errno as usually, returning 0 means success.<br> * In order the device to actually apear in the file system, you have to call device_create (class, parent_dev, devno, device_name).<br> * In order to call device_create you need to have a device class object: either use one of the existing classes, or create your own with create_class (THIS_MODULE, class_name).<br> <p> </div> Wed, 26 Nov 2008 13:27:02 +0000