lkml.org 
[lkml]   [2013]   [Feb]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH v2] ACPI: Add sysfs links from memory device to memblocks
From
Date
On Tue, 2013-02-26 at 05:37 +0000, Yasuaki Ishimatsu wrote:
> 2013/02/26 6:02, Toshi Kani wrote:
> > In order to eject a memory device object represented as "PNP0C80:%d"
> > in sysfs, its associated memblocks (system/memory/memory%d) need to
> > be off-lined. However, there is no user friendly way to correlate
> > between a memory device object and its memblocks in sysfs.
> >
> > This patch creates sysfs links to memblocks under a memory device
> > object so that a user can easily checks and manipulates its memblocks
> > in sysfs.
> >
> > For example, when PNP0C80:05 is associated with memory8 and memory9,
> > the following two links are created under PNP0C80:05. This allows
> > a user to access memory8/9 directly from PNP0C80:05.
> >
> > # ll /sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C80:05
> > lrwxrwxrwx. memory8 -> ../../../system/memory/memory8
> > lrwxrwxrwx. memory9 -> ../../../system/memory/memory9
> >
> > Signed-off-by: Toshi Kani <toshi.kani@hp.com>
> > ---
>
> I confirmed that the patch has no problem.
> Feel free to add:
>
> Tested-by: Yasuaki Ishimatsu <isimatu.yasuaki@jp.fujitsu.com>
> Acked-by: Yasuaki Ishimatsu <isimatu.yasuaki@jp.fujitsu.com>

Great! Thanks Yasuaki!
-Toshi




\
 
 \ /
  Last update: 2013-02-26 19:21    [W:0.114 / U:0.196 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site