Re: platform device , uevent file

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

 



On Sun, Feb 08, 2009 at 07:47:05PM +0200, Daniel Baluta wrote:
> Hello,
> 
> I don't really understand how kernel generates events when working
> with platform devices and drivers ( [1] ).
> I have registered my driver with platform_driver_register and my
> device with platform_device_register_simple.
> 
> I want to dynamically create the node in /dev , and for that i need
> the kernel to send events like ( MAJOR=x, MINOR=y)
> that will be interpreted by the udev daemon acording to rules from
> /etc/udev/rules.d.

Platform devices can't do this, you need to use a "real" struct device,
or register with a class that handles major/minor allocation for you
(input, block, etc.)

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