From mboxrd@z Thu Jan 1 00:00:00 1970 From: onlyfever@gmail.com (onlyfever) Date: Thu, 5 May 2011 22:43:49 +0800 Subject: question about misc char devices, and relationship with udev In-Reply-To: References: Message-ID: To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org > ?also, the ELDD book claims that misc_register() calls the kernel > routine class_device_create(). ?i'm looking at the entire > kernel implementation for misc drivers in drivers/char/misc.c, and > what i see is a call to device_create() instead. ?i suspect i should > start following the flow of control here, but i'm still curious as to > how that /dev file came into existence without any obvious help > from udev. In linux 2.6.20,kernel still use class_device_create(). After linux 2.6.22(maybe,I can't remember),kernel use device_create() instead of class_device_create().