aboutsummaryrefslogtreecommitdiffstats
path: root/man2/spu_create.2
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2020-11-27 11:15:14 +0100
committerMichael Kerrisk <mtk.manpages@gmail.com>2020-11-27 11:15:14 +0100
commitc8efc05e6af8e9405f0dc7a90f5ef28c20ddda25 (patch)
treee5e375ed8bf3640163f2795e9cb8ef859707fd82 /man2/spu_create.2
parentc15912550f390264a76c1faefb6c9d553e9938b3 (diff)
downloadman-pages-c8efc05e6af8e9405f0dc7a90f5ef28c20ddda25.tar.gz
spu_create.2: Clarify that spu_create() now has 4 arguments but once had only 3
Reported-by: Alejandro Colomar <alx.manpages@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Diffstat (limited to 'man2/spu_create.2')
-rw-r--r--man2/spu_create.215
1 files changed, 14 insertions, 1 deletions
diff --git a/man2/spu_create.2 b/man2/spu_create.2
index 92f5fc3048..f09d498ed1 100644
--- a/man2/spu_create.2
+++ b/man2/spu_create.2
@@ -30,7 +30,6 @@ spu_create \- create a new spu context
.B #include <sys/types.h>
.B #include <sys/spu.h>
.PP
-.BI "int spu_create(const char *" pathname ", int " flags ", mode_t " mode ");"
.BI "int spu_create(const char *" pathname ", int " flags ", mode_t " mode ","
.BI " int " neighbor_fd ");"
.fi
@@ -89,6 +88,12 @@ for a full list of the possible
values.
.PP
The
+.I neighbor_fd
+is used only when the
+.B SPU_CREATE_AFFINITY_SPU
+flag is specified; see below.
+.PP
+The
.I flags
argument can be zero or any bitwise OR-ed
combination of the following constants:
@@ -264,6 +269,14 @@ See
.UR http://www.bsc.es\:/projects\:/deepcomputing\:/linuxoncell/
.UE
for the recommended libraries.
+.PP
+Prior to the addition of the
+.B SPU_CREATE_AFFINITY_SPU
+flag in Linux 2.6.23, the
+.BR spu_create ()
+system call took only three arguments (i.e., there was no
+.I neighbor_fd
+argument).
.SH EXAMPLES
See
.BR spu_run (2)