https://github.com/torvalds/linux
Revision 38457ab3a0d36320370c715145ba6da514127194 authored by Andi Kleen on 05 January 2010, 11:48:02 UTC, committed by Greg Kroah-Hartman on 08 March 2010, 01:04:47 UTC
Add a attribute array that is automatically registered and unregistered
to struct sysdev_class. This is similar to what struct class has.

A lot of drivers add list of attributes, so it's better to do 
this easily in the common sysdev layer.

This adds a new field to struct sysdev_class. I audited the 
whole tree and there are no dynamically allocated sysdev classes,
so this is fully compatible. 

Signed-off-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>


1 parent 1c205ae
History
Tip revision: 38457ab3a0d36320370c715145ba6da514127194 authored by Andi Kleen on 05 January 2010, 11:48:02 UTC
sysfs: Add attribute array to sysdev classes
Tip revision: 38457ab
File Mode Size
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.gitignore -rw-r--r-- 849 bytes
.mailmap -rw-r--r-- 3.9 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 91.8 KB
Kbuild -rw-r--r-- 2.4 KB
MAINTAINERS -rw-r--r-- 164.1 KB
Makefile -rw-r--r-- 52.0 KB
README -rw-r--r-- 17.0 KB
REPORTING-BUGS -rw-r--r-- 3.3 KB

README

back to top