<!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>RE: mdev scan</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>&gt;&gt; I'm having problems scanning usb_endpoint '/dev's on older kernels, 2.6.13 in particular.<BR>
&gt;&gt; The usb_endpoints are beyond the constant MAX_SYSFS_DEPTH somewhere under /sys.<BR>
&gt;<BR>
&gt;How much is ok on those kernels? 4? 5?<BR>
<BR>
5 would be good, but then I have problems with circular recursion.<BR>
<BR>
&gt;&gt; Is there any particular reason for scanning /sys/block and /sys/class separately other than<BR>
&gt;&gt; to ascertain a nodes type?<BR>
&gt;<BR>
&gt;I guess scanning whole /sys will go into e.g. /sys/module too<BR>
&gt;and it can be rather deep.<BR>
<BR>
It would prolong scan times. I think it doesn't matter if a scan is little longer.<BR>
<BR>
&gt;&gt; Assuming a particular &lt;name&gt;/dev combination is unambiguous, one could scan the entire /sys tree<BR>
&gt;&gt; without missing any '/dev's. I see three prerequisites.<BR>
&gt;<BR>
&gt;Can you re-formulate your thoughts is a simpler way? By now, I don't<BR>
&gt;understand what is the problem you are trying to solve.<BR>
...<BR>
&gt;Solution for what problem?<BR>
<BR>
I can try...<BR>
<BR>
My problem is that some dev files are too deep in the /sys tree to be caught<BR>
by the default mdev definition. When I increase the maximum depth to say 5, I<BR>
have problems with circular recursion.<BR>
<BR>
Being that the dev files can be found elsewhere in the /sys tree albeit deeper<BR>
and without following links, I wanted to solve the problem as previously stated.<BR>
<BR>
<BR>
John</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>