Re: [PATCH v2] ACPI: Add sysfs links from memory device to memblocks

Toshi Kani
2013-02-26T17:27:41Z

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