<div dir="ltr"><div class="gmail_extra">Hi Greg,</div><div class="gmail_extra"><br></div><div class="gmail_extra">Thanks for your response.</div><div class="gmail_extra"><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 23, 2017 at 12:04 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:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-">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 block<br>
> and net device entries are present.<br>
<br>
</span>I see character devices there, but not the device nodes. I don't see<br>
block device nodes there either.<br></blockquote><div><br></div><div style="font-size:12.8px">If I am wrong please correct me, there is a folder called block in /sys/class. is block not containing block device nodes? </div><span class="gmail-im" style="font-size:12.8px"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"> </blockquote></span><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<span class="gmail-"><br>
> Not only in /sys/class, for that matter why there is no character device<br>
> entries present in /sys file system.<br>
<br>
</span>What do you exactly mean by "character device entries"?<br></blockquote><div><br></div><div><span style="font-size:12.8px">like block and net why there is no char folder </span> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<span class="gmail-"><br>
> please help me to understand for what purpose char devices are kept away from /<br>
> sys file system.<br>
<br>
</span>Have you read the driver model chapter in the Linux Device drivers book,<br>
or the in-kernel sysfs documentation?<br>
<br>
thanks,<br>
<br>
greg k-h<br>
</blockquote></div><br></div></div>