From mboxrd@z Thu Jan 1 00:00:00 1970 From: mandeepsandhu.chd@gmail.com (Mandeep Sandhu) Date: Tue, 3 May 2011 19:09:16 +0530 Subject: looking for simple module/driver programming examples in source tree In-Reply-To: References: <20110503122800.GA24483@kroah.com> <20110503125425.GA29202@kroah.com> Message-ID: To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org >> > ? so have proc/seq file been massively deprecated in favour of sysfs >> > attribute files, then? >> >> Yes, that happened about 8 years ago :) >> >> No driver should ever add a proc file, it's that simple. > > ?oh, i was aware that the preference was for sysfs attr files. ?i > just didn't realize it was that stringent. ?thanks. I think the 'strictness' comes from the fact the /proc system was heavily abused for dumping just about any info into it (in the early days 2.4 kernel, I think). /proc was originally meant for putting 'process' specific info (thats why the name - proc) and not for device drivers. CMIIW. sysfs is a dedicated place for device drivers to export info to userland. HTH, -mandeep > > rday > > -- > > ======================================================================== > Robert P. J. Day ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? Ottawa, Ontario, CANADA > ? ? ? ? ? ? ? ? ? ? ? ?http://crashcourse.ca > > Twitter: ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? http://twitter.com/rpjday > LinkedIn: ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? http://ca.linkedin.com/in/rpjday > ======================================================================== > > _______________________________________________ > Kernelnewbies mailing list > Kernelnewbies at kernelnewbies.org > http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies >