<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7652.24">
<TITLE>mdev scan</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>Hi,<BR>
<BR>
I'm having problems scanning usb_endpoint '/dev's on older kernels, 2.6.13 in particular.<BR>
The usb_endpoints are beyond the constant MAX_SYSFS_DEPTH somewhere under /sys.<BR>
<BR>
Is there any particular reason for scanning /sys/block and /sys/class separately other than<BR>
to ascertain a nodes type?<BR>
<BR>
Assuming a particular &lt;name&gt;/dev combination is unambiguous, one could scan the entire /sys tree<BR>
without missing any '/dev's. I see three prerequisites. The first is to ignore links while traversing<BR>
, the second is to drop the maximal search depth and last determine a nodes type by searching<BR>
for '/block/' in the first len('/class/block/') characters in the resulting search path.<BR>
<BR>
A solution may however, result in longer scan times, but reduces executable size and code complexity.<BR>
<BR>
<BR>
<BR>
John Holland<BR>
</FONT>
</P>

<br>
<span style="font-family:Arial,sans-serif;font-size:10pt;color:blue"><b>Cellent Finance Solutions AG</b></span><br><br>
<span style="font-family:Arial,sans-serif;font-size:9pt">
Firmensitz: Calwer Straße 33, 70173 Stuttgart<br>
Registergericht: Amtsgericht Stuttgart, HRB 720743<br>
Vorstand: Thomas Wild<br>
Vorsitzender des Aufsichtsrats: Rudolf Zipf
</span>
</BODY>
</HTML>