Re: Creating dev nodes from driver or via uevent?
From: Jike Song
Date: Wed Oct 15 2008 - 03:24:00 EST
On Wed, Oct 15, 2008 at 2:39 PM, Fabiano Sidler <lists@xxxxxxxxxxx> 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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/