<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 23, 2017 at 2:53 PM, Greg KH <span dir="ltr"><<a href="mailto:greg@kroah.com" target="_blank">greg@kroah.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Tue, May 23, 2017 at 12:58:07PM +0530, Madhu K wrote:<br>
> Hi Greg,<br>
><br>
> Thanks for your response.<br>
><br>
><br>
> On Tue, May 23, 2017 at 12:04 PM, Greg KH <<a href="mailto:greg@kroah.com">greg@kroah.com</a>> wrote:<br>
><br>
> On Tue, May 23, 2017 at 11:58:31AM +0530, Madhu K wrote:<br>
> > Hi All,<br>
> ><br>
> > why there is no character device entry present in /sys/class? where as<br>
> block<br>
> > and net device entries are present.<br>
><br>
> I see character devices there, but not the device nodes. I don't see<br>
> block device nodes there either.<br>
><br>
><br>
> If I am wrong please correct me, there is a folder called block in /sys/class.<br>
> is block not containing block device nodes? <br>
<br>
</span>Nope, look closer :)<br></blockquote><div><br></div><div>I checked the block folder, the entries which are present in /sys/class/block are softlink to /sys/devices nodes. what i understand from this is, all block net and char node entries are present in /sys/devices. Am i correct?</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<span class=""><br>
> > Not only in /sys/class, for that matter why there is no character device<br>
> > entries present in /sys file system.<br>
><br>
> What do you exactly mean by "character device entries"?<br>
><br>
><br>
> like block and net why there is no char folder <br>
<br>
</span>Again, look closer please.<br>
<span class=""><br>
> > please help me to understand for what purpose char devices are kept away<br>
> from /<br>
> > sys file system.<br>
><br>
> Have you read the driver model chapter in the Linux Device drivers book,<br>
> or the in-kernel sysfs documentation?<br>
<br>
</span>Again, please read all of the copious documentation that we have written<br>
already about this topic. If after that, you still have questions, I<br>
will be more than glad to help answer them.<br>
<br>
thanks,<br>
<br>
greg k-h<br>
</blockquote></div><br></div></div>