DPDK patches and discussions
 help / color / mirror / Atom feed
* [PATCH] eal: update comment for eal_get_virtual_area()
@ 2025-12-19 19:15 Marcel Telka
  0 siblings, 0 replies; only message in thread
From: Marcel Telka @ 2025-12-19 19:15 UTC (permalink / raw)
  To: dev; +Cc: Anatoly Burakov, Marcel Telka

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"

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-12-19 19:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-12-19 19:15 [PATCH] eal: update comment for eal_get_virtual_area() Marcel Telka

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).