lkml.org 
[lkml]   [2015]   [Jun]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v7 1/3] sysfs: added sysfs_link_entry_to_kobj()
On Mon, Jun 22, 2015 at 01:30:39PM -0400, Tejun Heo wrote:
> On Mon, Jun 22, 2015 at 08:24:50PM +0300, Jarkko Sakkinen wrote:
> > Added a new function sysfs_link_group_to_kobj() that adds a symlink
> > from attribute or group to a kobject. Exported kernfs_remove_by_name_ns
> > in order to provide a way to remove such symlinks.
> >
> > Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
>
> Hmmm... is this *really* necessary? If linking from the parent kobj
> doesn't make a fundamental functional difference, I don't think this
> is a good idea. If linking to the parent doesn't work, why doesn't
> it? Shouldn't that already be a different kobj then? I'd really like
> to keep groups as a dumb container of simple attrs.

TPM is undergoing a migration of core attributes from the
platform_device to the core's struct device.

The only purpose of the symlink was to provide userspace
compatability with the old location.

Jason
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2015-06-22 20:21    [W:0.050 / U:2.404 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site