Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp2406518rdb; Thu, 21 Sep 2023 19:03:40 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEs13Zy+usJ4jxL16o4CoQlQLH1kFaGHqgvrgBsh9RIUKvdBkaf7PrX0YBHSWQ0Boz1ovd8 X-Received: by 2002:a05:6a20:104e:b0:15d:641b:57b6 with SMTP id gt14-20020a056a20104e00b0015d641b57b6mr2511339pzc.5.1695348220049; Thu, 21 Sep 2023 19:03:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695348220; cv=none; d=google.com; s=arc-20160816; b=OU7Fbh1DzvHBXToCny8Opv+S2opj9UZlYYlZRdl/UkCDlhdjUmbJUAQTpGRrmmKx3F SZj+2F8wLyCm0kCo2l1LyvhgQJbZcJjhhCNNP8mK5DC1wzlIX8dqRyL3fkfaqhYWIySV 4WqNv1wTEouamnyElGpdiIbCvD/fAyc9KnTyV7gKQ2q5rJe7KDmybDjrXhvHqKXEyczd SjGeHOt1MeHW1RwQ75ou5FnqmRxTMHKZ6UATY3/LLDbDy2tr6r2VHpue1XDzm4c5Hiuz n0QdxpmlYaLIc+6Nf6yDRhWtydjWf7RdqZd6qsQ8sq9k4kV63bsN9c+saDeIiI6A+n5H V+Dw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date; bh=zEA0tg9aKKkaefOPy5PEck40rJwA5kRFLcJAmdR1E24=; fh=xfMmTuRFHnPreXlqbx0kerq+EZ62LRaB/C4n5G6hxKo=; b=k8Az99KMQ2YrEyTDY5vx1Cnpxt3AVbvU+LoFulXS56XxybP+SulHqLGXz40ZnYrIjW ZKlFbhqbNN9qvV6kyri+X30rjAZ4XMx0S/7vfrNN1HBW/8qQZQDHPpKAWRUfK7S96Q1Q Q1qih9pcI/hocRVfwLKeiVhBcSPTgi8RIocg3lPZwyQ52h7EMeCFm/r1Onlo0D2N16DS NeMJ5seBsrczxLhxtAOPYXUEAfT89Lyi+i9QHw9F8Iq1sbPGHdprcOY4/Gh8CsEiJ8UE rKP16PA1jetS/uSND5P+M7sumXFccEiglRS7ZwtbuBP/a+s7bI8W5A2v5b640uMxeBaX w8dQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id b14-20020a170902650e00b001bf5f853a8bsi2574543plk.641.2023.09.21.19.03.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Sep 2023 19:03:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id DC3A583B633E; Thu, 21 Sep 2023 19:00:47 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230286AbjIVCAs (ORCPT + 99 others); Thu, 21 Sep 2023 22:00:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54444 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230128AbjIVCAr (ORCPT ); Thu, 21 Sep 2023 22:00:47 -0400 Received: from wxsgout04.xfusion.com (wxsgout04.xfusion.com [36.139.87.180]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 15F4C91 for ; Thu, 21 Sep 2023 19:00:38 -0700 (PDT) Received: from wuxshcsitd00600.xfusion.com (unknown [10.32.133.213]) by wxsgout04.xfusion.com (SkyGuard) with ESMTPS id 4RsFmG5H0QzB0R6m; Fri, 22 Sep 2023 09:58:22 +0800 (CST) Received: from localhost (10.82.147.3) by wuxshcsitd00600.xfusion.com (10.32.133.213) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Fri, 22 Sep 2023 10:00:21 +0800 Date: Fri, 22 Sep 2023 10:00:21 +0800 From: Wang Jinchao To: David Hildenbrand , Oscar Salvador , Jonathan Corbet , , , CC: xulei Subject: [PATCH] memory-hotplug.rst: fix wrong /sys/device/ path Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline X-Originating-IP: [10.82.147.3] X-ClientProxiedBy: wuxshcsitd00600.xfusion.com (10.32.133.213) To wuxshcsitd00600.xfusion.com (10.32.133.213) X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Thu, 21 Sep 2023 19:00:48 -0700 (PDT) Actually, it should be /sys/devices/ Signed-off-by: Wang Jinchao --- Documentation/admin-guide/mm/memory-hotplug.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Documentation/admin-guide/mm/memory-hotplug.rst b/Documentation/admin-guide/mm/memory-hotplug.rst index cfe034cf1e87..01595965734a 100644 --- a/Documentation/admin-guide/mm/memory-hotplug.rst +++ b/Documentation/admin-guide/mm/memory-hotplug.rst @@ -250,15 +250,15 @@ Observing the State of Memory Blocks The state (online/offline/going-offline) of a memory block can be observed either via:: - % cat /sys/device/system/memory/memoryXXX/state + % cat /sys/devices/system/memory/memoryXXX/state Or alternatively (1/0) via:: - % cat /sys/device/system/memory/memoryXXX/online + % cat /sys/devices/system/memory/memoryXXX/online For an online memory block, the managing zone can be observed via:: - % cat /sys/device/system/memory/memoryXXX/valid_zones + % cat /sys/devices/system/memory/memoryXXX/valid_zones Configuring Memory Hot(Un)Plug ============================== @@ -326,7 +326,7 @@ however, a memory block might span memory holes. A memory block spanning memory holes cannot be offlined. For example, assume 1 GiB memory block size. A device for a memory starting at -0x100000000 is ``/sys/device/system/memory/memory4``:: +0x100000000 is ``/sys/devices/system/memory/memory4``:: (0x100000000 / 1Gib = 4) -- 2.40.0