From mboxrd@z Thu Jan 1 00:00:00 1970 From: greg@kroah.com (Greg KH) Date: Tue, 23 May 2017 08:34:55 +0200 Subject: understanding of sysfs. In-Reply-To: References: Message-ID: <20170523063455.GA18346@kroah.com> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org On Tue, May 23, 2017 at 11:58:31AM +0530, Madhu K wrote: > Hi All, > > why there is no character device entry present in /sys/class? where as block > and net device entries are present. I see character devices there, but not the device nodes. I don't see block device nodes there either. > Not only in /sys/class, for that matter why there is no character device > entries present in /sys file system. What do you exactly mean by "character device entries"? > please help me to understand for what purpose char devices are kept away from / > sys file system. Have you read the driver model chapter in the Linux Device drivers book, or the in-kernel sysfs documentation? thanks, greg k-h