linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Pci driver and udev...
@ 2006-11-06 16:31 Kris van Rens
  2006-11-07  8:14 ` Greg KH
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Kris van Rens @ 2006-11-06 16:31 UTC (permalink / raw)
  To: linux-hotplug

Hi there,

I'm upgrading an 'old' pci-character-device-driver to use udev for
dynamic device file assignment. I was used to working with
'register_chrdev' but that function should not be used anymore because
it's old.

So I decided to go for the 'new-style' 'cdev' way.

I made a simple testdriver which uses 'pci_register_driver' and the
corresponding functions to register the driver; this works fine and
after a depmod the driver is automatically loaded at boot time
(triggered by the found vendor-/device-id combination of course).

Then I added the 'cdev' part and...well, actually nothing happened...
cdev_init() exits with returnvalue 0 and such but I actually expected
udev to be triggered and create a device file.

So I assume the cdev stuff is just for 'internal' registration of the
character device and something else should be used to tell udev a new
device is there? So I found the part about udev and 'class_simple_*'
in the ldd3 book but that was deleted from the kernel.

As I understand it was replaced by the better version of 'class' but I
kind of lost in all the functions in base/class.c...

Can someone enlighten me?

Thanks in advance,

-Kris

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid\x120709&bid&3057&dat\x121642
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2006-11-08 18:22 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-06 16:31 Pci driver and udev Kris van Rens
2006-11-07  8:14 ` Greg KH
2006-11-07  8:38 ` Kris van Rens
2006-11-08 11:14 ` Kris van Rens
2006-11-08 14:10 ` Kris van Rens
2006-11-08 17:32 ` Bryan Kadzban
2006-11-08 18:22 ` Kris van Rens

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).