[patch] Allow devices with no sysdevices

Joe Shaw joeshaw at novell.com
Wed May 19 09:10:21 PDT 2004


Hi,

Attached is a patch which allows us to have class devices with no
sysdevice, and adds support to the net class device to use it.

This is needed because pcmcia doesn't use sysfs correctly in the 2.6
kernel to date.  In order to avoid changing a ton of the existing code,
I create a fake virtual sysdevice, and any devices which don't have a
real sysdevice use it as its parent instead.

One thing to note is that the "accept" method is now responsible for
rejecting class devices without sysdevices and not the "visit" method.
But almost all the class devices use the default class_device_accept()
method so it isn't a big deal.

With this, my PCMCIA wireless card shows up, albeit without any
identifying information.  I suspect we might be able to do something
similar for firewire devices.

How's it look?

Joe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hald-fakeroot.patch
Type: text/x-diff
Size: 16572 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/hal/attachments/20040519/534d9524/hald-fakeroot.bin
-------------- next part --------------
_______________________________________________
hal mailing list
hal at freedesktop.org
http://freedesktop.org/mailman/listinfo/hal


More information about the Hal mailing list