Messages in this thread |  | | | Date | Wed, 15 Oct 2008 15:23:49 +0800 | | From | "Jike Song" <> | | Subject | Re: Creating dev nodes from driver or via uevent? | |
On Wed, Oct 15, 2008 at 2:39 PM, Fabiano Sidler <lists@fipscode.ch> wrote:
> Hi folks!
>
> Probably a very basic question, but is it better to directly mknod from a
> module's init funtion or to use the uevent/udev mechanism? If the latter,
> are there good overviews, explanations and comprehensive code samples
> especially for using udev,
You can refer to any in-tree driver that calls class_create() and
device_create_drvdata() afterwards. say drivers/char/raw.c
LDD3 by Greg has some descriptions on this, but since the interface
has changed..
--
Thanks,
Jike
|  |