lkml.org 
[lkml]   [2006]   [Jan]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: udev/hotplug and automatic /dev node creation
On Wed, Jan 18, 2006 at 03:47:10AM +0100, Horst Schirmeier wrote:
> Hi,
>
> I'm looking for documentation regarding how to write a Linux kernel
> module that creates its own /dev node via udev/hotplug.
> register_chrdev() and a simple udev/rules.d/ entry don't seem to be
> sufficient...

Yes, register_chrdev() will do nothing for udev.

Take a look at the book, Linux Device Drivers, third edition (free
online). In the chapter about the driver model, there is a section
about what udev needs. The functions it says to use are no longer in
the kernel, but it should point you in the right direction (hint, use
class_device_create().)

If you have a pointer to your code, I can probably knock out a patch for
you very quickly.

thanks,

greg k-h
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-01-18 05:13    [W:0.082 / U:0.072 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site