1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167
|
.\" This is _*_ nroff _*_ source. Emacs, gimme all those colors :)
.\"
.\" Copyright (c) International Business Machines Corp., 2006
.\"
.\" This program is free software; you can redistribute it and/or
.\" modify it under the terms of the GNU General Public License as
.\" published by the Free Software Foundation; either version 2 of
.\" the License, or (at your option) any later version.
.\"
.\" This program is distributed in the hope that it will be useful,
.\" but WITHOUT ANY WARRANTY; without even the implied warranty of
.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See
.\" the GNU General Public License for more details.
.\"
.\" You should have received a copy of the GNU General Public License
.\" along with this program; if not, write to the Free Software
.\" Foundation, Inc., 59 Temple Place, Suite 330, Boston,
.\" MA 02111-1307 USA
.\"
.\" HISTORY:
.\" 2005-09-28, created by Arnd Bergmann <arndb@de.ibm.com>
.\" 2006-06-16, revised by Eduardo M. Fleury <efleury@br.ibm.com>
.\" 2007-07-10, some polishing by mtk
.\"
.TH SPU_CREATE 2 2007-07-10 "Linux" "Linux Programmer's Manual"
.SH ̾
spu_create \- SPU ƥȤ
.SH
.nf
.B #include <sys/types.h>
.B #include <sys/spu.h>
.BI "int spu_create(const char *" pathname ", int " flags ", mode_t " mode ");"
.fi
.SH
.BR spu_create ()
ƥॳϡCell Broadband Engine ƥ
PowerPC ޥˤơSynergistic Processor Unit (SPU) ˥
˻Ѥ롣
ΥƥॳϡSPU Ф뿷ƥȤ
.I pathname
ΥƥȤ˴Ϣդ줿եǥץ֤
.I pathname
SPU ե륷ƥ (SPUFS) Υޥȥݥ
¸ߤʤǥ쥯ȥؤƤʤФʤʤ
.BR spu_create ()
ȡ
.I pathname
˥ǥ쥯ȥ꤬졢Υǥ쥯ȥ
.BR spufs (7)
Ƥե뷲֤롣
֤줿եϥɥϡ
.BR spu_run (2)
Ϥ뤫Ǥʤ
¾Ƥʤ
SPU ƥȤ˴Τϡ
ƥȼȤؤΥեǥץ졢
ΥեؤΥեǥץƥ줿ȤǤ롣
SPU ƥȤ˴ȡSPUFS ΤΥǥ쥯ȥƤΥȥ
롣
.I flags
ˤϥʲǤ롣
.TP
.B SPU_RAWIO
SPU Υϡɥ쥸ΤĤ桼֤˥ޥåԥ뤳Ȥ
Ĥ롣Υե饰ꤹˤ
.B CAP_SYS_RAWIO
ѥӥƥɬפǤ롣
.PP
SPUFS ˿줿ǥ쥯ȥȥեΥĤϡ
.I mode
餽Υץ
.BR umask (2)
ͤꤵ롣
ƥեμºݤΥĤϡΥե뤬ɤ߽Ф
ߥݡȤƤ뤫θƷޤ롣
.SH ֤
ȡ
.BR spu_create (2)
Ͽեǥץ֤
顼ξ硢\-1 ֤
.I errno
˰ʲΥꥹȤ˵ܤΥ顼ɤΤ줫ꤹ롣
.SH 顼
.TP
.B EACCES
ߤΥ桼 SPUFS ΥޥȥݥȤؤνߵĤäƤʤ
.TP
.B EEXIST
ꤵ줿ѥ̾ SPU ƥȤǤƤ롣
.TP
.B EFAULT
.I pathname
ߤΥɥ쥹֤ͭʸݥǤϤʤ
.TP
.B EINVAL
.I pathname
SPUFS ޥȥݥΥǥ쥯ȥǤϤʤ
.TP
.B ELOOP
.I pathname
褹ޤǤéäܥå¿
.TP
.B EMFILE
ΥץץǤեξ¤ãƤ
.TP
.B ENAMETOOLONG
.I pathname
Ĺ롣
.TP
.B ENFILE
ƥΤǥץǤեξ¤ãƤ
.TP
.B ENOENT
.I pathname
ΰǤʤä
.TP
.B ENOMEM
ͥ뤬ɬפʥƤƤ뤳ȤǤʤä
.TP
.B ENOSPC
ƥȤΤ˽ʬ SPU ʤä
ޤ SPU ƥȿΥ桼ξ¤ãƤ
.TP
.B ENOSYS
ǽưΥƥƤʤͳϡ
ϡɥ SPU Ƥʤ
spufs ⥸塼뤬ɤƤʤΤɤ餫Ǥ롣
.TP
.B ENOTDIR
.I pathname
ΰǥ쥯ȥǤϤʤ
.SH ե
.I pathname
SPUFS ΥޥȥݥȤ۲ξؤƤʤФʤʤ
ǤϡSPUFS
.I /spu
˥ޥȤ롣
.SH С
.BR spu_create (2)
ƥॳϥͥ 2.6.16 Linux ɲä줿
.SH
Υƥॳ Linux ͭǤꡢ
ppc64 ƥǤΤƤ롣
ΥƥॳȤäץϰܿʤ
.SH
glibc ϤΥƥॳФåѡؿƤʤ
.BR syscall (2)
Ȥȡ
.BR spu_create ()
٤ι⤤ SPU ؤΥե饤֥꤫
Ѥ뤳ȤտޤΤǤꡢ̾Υץꥱ
ѤϰտޤƤʤ侩Υ饤֥ˤĤƤ
.I http://www.bsc.es/projects/deepcomputing/linuxoncell/
ȤΤȡ
.SH Х
ºݤΥɤǤϤǽҤ٤Ƥεǽ˼Ƥ櫓ǤϤʤ
.\" .SH AUTHOR
.\" Arnd Bergmann <arndb@de.ibm.com>
.SH Ϣ
.BR close (2),
.BR spu_run (2),
.BR capabilities (7),
.BR spufs (7)
|