From: Marcel Telka <marcel@telka.sk>
To: dev@dpdk.org
Cc: Anatoly Burakov <anatoly.burakov@intel.com>,
Marcel Telka <marcel@telka.sk>
Subject: [PATCH] eal: update comment for eal_get_virtual_area()
Date: Fri, 19 Dec 2025 20:15:54 +0100 [thread overview]
Message-ID: <20251219191554.939982-1-marcel@telka.sk> (raw)
Bugzilla ID: 1853
Signed-off-by: Marcel Telka <marcel@telka.sk>
---
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"
reply other threads:[~2025-12-19 19:16 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20251219191554.939982-1-marcel@telka.sk \
--to=marcel@telka.sk \
--cc=anatoly.burakov@intel.com \
--cc=dev@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).