We can use context FDs for the dirfd argument to the *at() syscalls.

This commit is contained in:
Michael Kerrisk 2007-12-20 11:49:17 +00:00
parent cf94921b75
commit 30f6523ba5
1 changed files with 9 additions and 3 deletions

View File

@ -21,7 +21,7 @@
.\" 2007-07-10, some polishing by mtk
.\" 2007-09-28, updates for newer kernels by Jeremy Kerr <jk@ozlabs.org>
.\"
.TH SPU_CREATE 2 2007-11-25 Linux "Linux Programmer's Manual"
.TH SPU_CREATE 2 2007-12-20 Linux "Linux Programmer's Manual"
.SH NAME
spu_create \- create a new spu context
.SH SYNOPSIS
@ -55,9 +55,15 @@ and it is populated with the files described in
When a context is created,
the returned file descriptor can only be passed to
.BR spu_run (2)
.BR spu_run (2),
used as the
.I dirfd
argument to the
.B *at
family of system calls (e.g.,
.BR openat (2)),
or closed;
other operations are not defined on it.
other operations are not defined.
A logical SPU
context is destroyed (along with all files created within the context's
.I pathname