Re: looking for simple module/driver programming examples in source tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 3 May 2011, Greg KH wrote:

> On Tue, May 03, 2011 at 08:38:48AM -0400, Robert P. J. Day wrote:
> > On Tue, 3 May 2011, Greg KH wrote:
> >
> > > On Tue, May 03, 2011 at 07:45:54AM -0400, Robert P. J. Day wrote:
> > > >   once you see that living, breathing example, what more would you
> > > > need to know about how to have your module/driver create a simple
> > > > read-only proc file?
> > >
> > > You need to know that if your module/driver ever creates a simple
> > > read-only proc file, they will be flamed to a crisp on lkml when
> > > they submit it :)
> > >
> > > Seriously, don't ever create a new proc file, it's not anything
> > > anyone should ever be doing anymore.
> >
> >   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.

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@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux