Skip to contentSkip to conversation

device_find broken in 2.6.11?

DISCUSSION Rusty Russell 2 participants 4 messages Jul 8, 2005

lore
Share & tools
lore
#0 lore raw

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
#1 lore raw
Quoted 10 lines · Rusty Russell

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?

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

#2 lore raw
Quoted 9 lines · Greg KH
Quoted 3 lines · Rusty Russell

I was getting oopses in kset_find_obj when calling device_find in
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
#3 lore raw
Quoted 6 lines · Rusty Russell
Quoted 5 lines · Greg KH
Quoted 3 lines · Rusty Russell

I was getting oopses in kset_find_obj when calling device_find in
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