38 lines
1.0 KiB
Diff
38 lines
1.0 KiB
Diff
From 63e02235bdbcf5aa334903be2111a82b27c8c155 Mon Sep 17 00:00:00 2001
|
|
From: Pingfan Liu <piliu@redhat.com>
|
|
Date: Fri, 24 Jan 2025 11:33:32 +0800
|
|
Subject: [PATCH 2/2] doc: Update man for numa_preferred_err()
|
|
|
|
Signed-off-by: Pingfan Liu <piliu@redhat.com>
|
|
---
|
|
numa.3 | 6 ++++++
|
|
1 file changed, 6 insertions(+)
|
|
|
|
diff --git a/numa.3 b/numa.3
|
|
index af24f66..e911953 100644
|
|
--- a/numa.3
|
|
+++ b/numa.3
|
|
@@ -64,6 +64,8 @@ numa \- NUMA policy library
|
|
.sp
|
|
.B int numa_preferred(void);
|
|
.br
|
|
+.B int numa_preferred_err(void);
|
|
+.br
|
|
.B int numa_has_preferred_many(void);
|
|
.br
|
|
.B struct bitmask *numa_preferred_many(void);
|
|
@@ -448,6 +450,10 @@ allocates memory, unless some other policy overrides this.
|
|
.\" order of the current node's zonelist to return the correct
|
|
.\" node. Need to tighten this up with the syscall results.
|
|
|
|
+.BR numa_preferred_err ()
|
|
+Similiar to numa_preferred(), but If the preferred node is unavailable,
|
|
+return an error instead of zero.
|
|
+
|
|
.BR numa_has_preferred_many ()
|
|
Returns > 0 if the system supports multiple preferred nodes.
|
|
|
|
--
|
|
2.47.0
|
|
|