docs/sysfs: Update directory/kobject documentation.
Some time ago the way how sysfs stores a pointer to a kobject corresponding to a directory was modified. This patch brings the documentation again in sync with the implementation. Signed-off-by: Bart Van Assche <bvanassche@acm.org> Cc: Tejun Heo <tj@kernel.org> Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
a5462516aa
commit
5480bcdd60
1 changed files with 6 additions and 4 deletions
|
@ -39,10 +39,12 @@ userspace. Top-level directories in sysfs represent the common
|
||||||
ancestors of object hierarchies; i.e. the subsystems the objects
|
ancestors of object hierarchies; i.e. the subsystems the objects
|
||||||
belong to.
|
belong to.
|
||||||
|
|
||||||
Sysfs internally stores the kobject that owns the directory in the
|
Sysfs internally stores a pointer to the kobject that implements a
|
||||||
->d_fsdata pointer of the directory's dentry. This allows sysfs to do
|
directory in the sysfs_dirent object associated with the directory. In
|
||||||
reference counting directly on the kobject when the file is opened and
|
the past this kobject pointer has been used by sysfs to do reference
|
||||||
closed.
|
counting directly on the kobject whenever the file is opened or closed.
|
||||||
|
With the current sysfs implementation the kobject reference count is
|
||||||
|
only modified directly by the function sysfs_schedule_callback().
|
||||||
|
|
||||||
|
|
||||||
Attributes
|
Attributes
|
||||||
|
|
Loading…
Add table
Reference in a new issue