Re: dynamic allocation of devices and udev

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

 



On Sat, Mar 10, 2007 at 06:19:50PM +0530, Himanshu Chauhan wrote:
> Dear all,
> 
> When we allocate the devices dynamically in drivers by using for example
> alloc_chrdev_region, would udev automatically create a corresponding
> device in /dev directory?

No.

> Or we will have to manually create the node?

You just need to use the proper device_create() function for udev to
pick it up and know to create a device node.  See the section on udev in
the Linux Device Drivers book, third edition for details on how to do
this.

thanks,

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