
15 May
2019
15 May
'19
7:05 a.m.
Hi Marek,
On Tue, May 14, 2019 at 5:12 PM Marek BehĂșn marek.behun@nic.cz wrote:
The documentation for the uclass_next_device says this:
@devp: On entry, pointer to device to lookup. On exit, returns pointer to the next device in the uclass if no error occurred, or NULL if there is no next device, or an error occurred with that next device.
But this is useless, because if an error occured with that next device, the iteration stops and devices which should work won't be probed.
The class_{first,next}_device_check functions do exactly what you need: They skip the devices that won't probe and only return the ones that do probe.
Best regards,
Mario