lkml.org 
[lkml]   [2008]   [Oct]   [15]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateWed, 15 Oct 2008 15:23:49 +0800
From"Jike Song" <>
SubjectRe: 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


\
 
 \ /
  Last update: 2008-10-15 09:27    [from the cache]
©2003-2008