device_find broken in 2.6.11?
Hi Greg,
I was getting oopses in kset_find_obj when calling device_find in
2.6.11.12. Noone else in the kernel uses device_find, but I couldnt' see anything wrong with it (mind you, I can't understand the kset_find_obj code to judge it).
Iterating manually using bus_for_each_dev works though.
Known problem?
Rusty.
Signature · 1 line
A bad analogy is like a leaky screwdriver -- Richard Braakman
Quoted 10 lines · Rusty Russell
Hi Greg,
I was getting oopses in
kset_find_objwhen callingdevice_findin
2.6.11.12. Noone else in the kernel usesdevice_find, but I couldnt' see anything wrong with it (mind you, I can't understand thekset_find_objcode to judge it).Iterating manually using
bus_for_each_devworks though.Known problem?
Yup, there's a reason no one uses it. Use the version in 2.6.13-rc2, it actually works.
What are you wanting to use it for?
thanks,
greg k-h
Quoted 9 lines · Greg KH
Quoted 3 lines · Rusty Russell
I was getting oopses in
kset_find_objwhen callingdevice_findin
2.6.11.12.Yup, there's a reason no one uses it. Use the version in 2.6.13-rc2, it actually works.
What are you wanting to use it for?
The xenbus code wants to find if a device is new: the Xen code is currently against on 2.6.11.12.
Thanks!
Rusty.
Signature · 1 line
A bad analogy is like a leaky screwdriver -- Richard Braakman
Quoted 6 lines · Rusty Russell
Quoted 5 lines · Greg KH
Quoted 3 lines · Rusty Russell
I was getting oopses in
kset_find_objwhen callingdevice_findin
2.6.11.12.
Quoted 6 lines
Quoted 4 lines
Yup, there's a reason no one uses it. Use the version in 2.6.13-rc2, it actually works.
What are you wanting to use it for?
The xenbus code
What is that? Any pointers to it?
Quoted 1 line
wants to find if a device is new:
new to whom? Busses usually drive the finding of new devices, so they always know when a device has been found or goes away.
Quoted 1 line
the Xen code is currently against on 2.6.11.12.
If you have code that is using the driver core, it will need big changes for 2.6.13 due to the internal rework that we have done. I suggest you start now :)
Good luck,
greg k-h