linux/fs/sysfs
Tejun Heo 3e5190380e sysfs: make sysfs_dirent->s_element a union
Make sd->s_element a union of sysfs_elem_{dir|symlink|attr|bin_attr}
and rename it to s_elem.  This is to achieve...

* some level of type checking : changing symlink to point to
  sysfs_dirent instead of kobject is much safer and less painful now.
* easier / standardized dereferencing
* allow sysfs_elem_* to contain more than one entry

Where possible, pointer is obtained by directly deferencing from sd
instead of going through other entities.  This reduces dependencies to
dentry, inode and kobject.  to_attr() and to_bin_attr() are unused now
and removed.

This is in preparation of object reference simplification.

Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2007-07-11 16:09:04 -07:00
..
bin.c sysfs: make sysfs_dirent->s_element a union 2007-07-11 16:09:04 -07:00
dir.c sysfs: make sysfs_dirent->s_element a union 2007-07-11 16:09:04 -07:00
file.c sysfs: make sysfs_dirent->s_element a union 2007-07-11 16:09:04 -07:00
group.c security: prevent permission checking of file removal via sysfs_remove_group() 2007-04-27 10:57:33 -07:00
inode.c sysfs: make sysfs_dirent->s_element a union 2007-07-11 16:09:04 -07:00
Makefile Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mount.c sysfs: make sysfs_dirent->s_element a union 2007-07-11 16:09:04 -07:00
symlink.c sysfs: make sysfs_dirent->s_element a union 2007-07-11 16:09:04 -07:00
sysfs.h sysfs: make sysfs_dirent->s_element a union 2007-07-11 16:09:04 -07:00