What does a linux device need to be seen by Hal?
Posted
by Jaime Soriano
on Stack Overflow
See other posts from Stack Overflow
or by Jaime Soriano
Published on 2010-06-03T11:29:53Z
Indexed on
2010/06/03
11:34 UTC
Read the original article
Hit count: 273
I'm trying to learn about device drivers on Linux Kernel, for that I've created three modules with:
- A bus type
- A device driver
- A fake device that does nothing now, only is registered
Everything works fine, I can load the bus, the driver and the module that creates the device. Everything appears on sysfs, including the link between the device and the device driver that indicates that they are binded.
And when the driver and device are loaded, I can see using udevadm monitor
that also some events are provoked:
KERNEL[1275564332.144997] add /module/bustest_driver (module)
KERNEL[1275564332.145289] add /bus/bustest/drivers/bustest_example (drivers)
UDEV [1275564332.157428] add /module/bustest_driver (module)
UDEV [1275564332.157483] add /bus/bustest/drivers/bustest_example (drivers)
KERNEL[1275564337.656650] add /module/bustest_device (module)
KERNEL[1275564337.656817] add /devices/bustest_device (bustest)
UDEV [1275564337.658294] add /module/bustest_device (module)
UDEV [1275564337.664707] add /devices/bustest_device (bustest)
But after everything, the device doesn't appear on hal. What else need a device to be seen by hal?
© Stack Overflow or respective owner