sysfs file size wierdness (was Re: 2.6-test1-mm1 success, tiny mouse and framebuffer problems

From: Valdis.Kletnieks@vt.edu
Date: Wed Jul 16 2003 - 11:11:36 EST


On Wed, 16 Jul 2003 17:47:02 +0300, Georgi Chorbadzhiyski said:

> P.S. Every file in sysfs is 4096 bytes, is this normal?

Even better:

# ls -l /sys/devices/system/cpu/cpu0/cpufreq
total 0
-r--r--r-- 1 root root 4096 Jul 16 09:59 cpuinfo_max_freq
-r--r--r-- 1 root root 4096 Jul 16 09:59 cpuinfo_min_freq
-r--r--r-- 1 root root 4096 Jul 16 09:59 scaling_available_governors
-r--r--r-- 1 root root 4096 Jul 16 09:59 scaling_driver
-rw-r--r-- 1 root root 4096 Jul 16 09:59 scaling_governor
-rw-r--r-- 1 root root 4096 Jul 16 09:59 scaling_max_freq
-rw-r--r-- 1 root root 4096 Jul 16 09:59 scaling_min_freq
# cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
performance
# cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors
performance powersave
# echo powersave >| /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
# ls -l /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
-rw-r--r-- 1 root root 0 Jul 16 09:59 /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

Started off as 4096, writing makes it go to zero. ;)



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Jul 23 2003 - 22:00:25 EST