Re: length of sysfs files ?

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

 



Greg KH wrote:
On Sat, May 20, 2006 at 01:31:59PM -0600, Jim Cromie wrote:
I just noticed an apparent randomness to the reported size of these files.

what does this mean ?

Nothing, you can't trust the length of sysfs files, as they are not set.
Only exception is some binary sysfs files, those values should be
correct.

Is there a reason you are concerned?  Does reading from these files not
work properly for you?

no, all is well.  they have good numbers.

I was looking closer than usual cuz Im running a patch which collapses
multiple sysfs-callback routines into combo routines using sensor_attribute_2's 2nd field to distinguish which 'function' to do. I get up to 5:1 callback count reduction for some of the sensor types,
and 9% overall .ko savings.  but I digress ;)

thanks


thanks,

greg k-h



--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[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