lkml.org 
[lkml]   [2004]   [Dec]   [2]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateWed, 1 Dec 2004 23:45:56 -0800
From"Adam J. Richter" <>
SubjectRe: [Patch?] Teach sysfs_get_name not to use a dentry
I wrote:
>the kobject is available as sysfs_dirent->s_dentry->d_parent->s_fsdata.

Argh.  I meant the attribute group's kobject is available as

((struct sysfs_dirent *) sysfs_dirent->s_dentry->d_parent->s_fsdata)->s_element

	...although this is normally calculated with some intermediate
steps and variables for clarity.

                    __     ______________
Adam J. Richter        \ /
adam@yggdrasil.com      | g g d r a s i l
-
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/
\
 
 \ /
  Last update: 2005-03-22 14:08    [from the cache]
©2003-2008