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>
This commit is contained in:
Michael Kerrisk 2020-11-27 11:15:14 +01:00
parent c15912550f
commit c8efc05e6a
1 changed files with 14 additions and 1 deletions

View File

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