Re: udev problems with cdev_add()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Feb 14, 2008 at 01:18:59PM -0500, tommy wrote:
> Hi,
>  I'm having trouble getting udev to create a device node in /dev/, the
> init_module() code is below, the kernel loads the module fine, any
> help/ideas would be much appreciated..

cdev_add does not create anything in /sys which is what you need to do
if you are have udev create a device node for you.

You need to call device_create() and pass it a dev_t.

Hope this helps,

greg k-h

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux