From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id CF91B47092; Fri, 19 Dec 2025 20:16:15 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3CF2F402A7; Fri, 19 Dec 2025 20:16:15 +0100 (CET) Received: from tortuga.telka.sk (tortuga.telka.sk [185.14.234.118]) by mails.dpdk.org (Postfix) with ESMTP id 4AF3B40276 for ; Fri, 19 Dec 2025 20:16:13 +0100 (CET) Received: (qmail 13731 invoked from network); 19 Dec 2025 19:16:12 -0000 Received: from il-bld.in.telka.sk (HELO il-bld.localdomain) (il-bld@10.0.0.17) by tortuga.telka.sk with ESMTPSA (DHE-RSA-AES256-GCM-SHA384 encrypted); 19 Dec 2025 19:16:12 -0000 Received: by il-bld.localdomain (Postfix, from userid 5001) id 23FF02A771; Fri, 19 Dec 2025 20:16:11 +0100 (CET) From: Marcel Telka To: dev@dpdk.org Cc: Anatoly Burakov , Marcel Telka Subject: [PATCH] eal: update comment for eal_get_virtual_area() Date: Fri, 19 Dec 2025 20:15:54 +0100 Message-ID: <20251219191554.939982-1-marcel@telka.sk> X-Mailer: git-send-email 2.52.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Bugzilla ID: 1853 Signed-off-by: Marcel Telka --- lib/eal/common/eal_common_memory.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/lib/eal/common/eal_common_memory.c b/lib/eal/common/eal_common_memory.c index c62edf5e55..b8e0d4c29a 100644 --- a/lib/eal/common/eal_common_memory.c +++ b/lib/eal/common/eal_common_memory.c @@ -33,11 +33,10 @@ #include "malloc_heap.h" /* - * Try to mmap *size bytes in /dev/zero. If it is successful, return the - * pointer to the mmap'd area and keep *size unmodified. Else, retry - * with a smaller zone: decrease *size by hugepage_sz until it reaches - * 0. In this case, return NULL. Note: this function returns an address - * which is a multiple of hugepage size. + * Try to mmap *size bytes. If it is successful, return the pointer to the + * mmap'd area and keep *size unmodified. Else, retry with a smaller zone: + * decrease *size by page_sz until it reaches 0. In this case, return NULL. + * Note: this function returns an address which is a multiple of page size. */ #define MEMSEG_LIST_FMT "memseg-%" PRIu64 "k-%i-%i"