OSDN Git Service

Update release for LDP 3.67
[linuxjm/LDP_man-pages.git] / release / man2 / sched_setparam.2
index a07eb7f..57b95f4 100644 (file)
@@ -1,7 +1,6 @@
-.\" Hey Emacs! This file is -*- nroff -*- source.
-.\"
 .\" Copyright (C) Tom Bjorkholm & Markus Kuhn, 1996
 .\"
+.\" %%%LICENSE_START(GPLv2+_DOC_FULL)
 .\" This is free documentation; 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
@@ -18,9 +17,9 @@
 .\" GNU General Public License for more details.
 .\"
 .\" You should have received a copy of the GNU General Public
-.\" License along with this manual; if not, write to the Free
-.\" Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111,
-.\" USA.
+.\" License along with this manual; if not, see
+.\" <http://www.gnu.org/licenses/>.
+.\" %%%LICENSE_END
 .\"
 .\" 1996-04-01 Tom Bjorkholm <tomb@mydata.se>
 .\"            First version written
 .\"            revision
 .\" Modified 2004-05-27 by Michael Kerrisk <mtk.manpages@gmail.com>
 .\"
+.\"*******************************************************************
+.\"
+.\" This file was generated with po4a. Translate the source file.
+.\"
+.\"*******************************************************************
+.\"
 .\" Japanese Version Copyright (c) 1997 HANATAKA Shinya
 .\"         all rights reserved.
 .\" Translated 1997-02-23, HANATAKA Shinya <hanataka@abyss.rim.or.jp>
 .\" Updated & Modified 2005-10-10, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
 .\" Updated 2006-04-14, Akihiro MOTOKI, LDP v2.29
 .\"
-.\"WORD:       process                 プロセス
-.\"WORD:       scheduling              スケジューリング
-.\"WORD:       policy                  方針
-.\"WORD:       implement               実装
-.\"WORD:       parameter               パラメータ
-.\"WORD:       effective user ID       実効ユーザーID
-.\"
-.TH SCHED_SETPARAM 2 2006-03-23 "Linux" "Linux Programmer's Manual"
+.TH SCHED_SETPARAM 2 2014\-05\-11 Linux "Linux Programmer's Manual"
 .SH 名前
 sched_setparam, sched_getparam \- スケジューリング・パラメータの設定と取得を行なう
 .SH 書式
 .nf
-.B #include <sched.h>
+\fB#include <sched.h>\fP
 .sp
-.BI "int sched_setparam(pid_t " pid ", const struct sched_param *" param );
+\fBint sched_setparam(pid_t \fP\fIpid\fP\fB, const struct sched_param *\fP\fIparam\fP\fB);\fP
 .sp
-.BI "int sched_getparam(pid_t " pid ", struct sched_param *" param );
+\fBint sched_getparam(pid_t \fP\fIpid\fP\fB, struct sched_param *\fP\fIparam\fP\fB);\fP
 .sp
-.nf
-.ta 4n
 \fBstruct sched_param {
     ...
-    int \fIsched_priority\fB;
+    int \fP\fIsched_priority\fP\fB;
     ...
-};
+};\fP
 .fi
 .SH 説明
-.BR sched_setparam ()
-は \fIpid\fP で指定されたプロセスのスケジューリング方針 (scheduling policy) に
-関連するスケジューリング・パラメータを設定する。
-\fIpid\fP が 0 ならば、呼び出し元のプロセスのパラメータが設定される。
-引き数 \fIparam\fP の解釈は、
-.I pid
-で指定されたプロセスのスケジューリング方針によって異なる。
-Linux でサポートされているスケジューリング方針の説明は
-.BR sched_setscheduler (2)
-を参照のこと。
+\fBsched_setparam\fP()  は \fIpid\fP で指定されたプロセスのスケジューリング方針 (scheduling policy) に
+関連するスケジューリング・パラメータを設定する。 \fIpid\fP が 0 ならば、呼び出し元のプロセスのパラメータが設定される。 引き数 \fIparam\fP
+の解釈は、 \fIpid\fP で指定されたプロセスのスケジューリング方針によって異なる。 Linux でサポートされているスケジューリング方針の説明は
+\fBsched\fP(7)  を参照のこと。
 
-.BR sched_getparam ()
-は \fIpid\fP で指定されたプロセスのスケジューリング・パラメータを取得する。
-\fIpid\fP が 0 ならば、呼び出し元のプロセスのパラメータを取得する。
+\fBsched_getparam\fP()  は \fIpid\fP で指定されたプロセスのスケジューリング・パラメータを取得する。 \fIpid\fP が 0
+ならば、呼び出し元のプロセスのパラメータを取得する。
 
-.BR sched_setparam ()
-はプロセスのスケジューリング方針における \fIparam\fP の妥当性をチェックする。
-\fIparam\->sched_priority\fP の値は
-.BR sched_get_priority_min (2)
-と
-.BR sched_get_priority_max (2)
-の範囲に入っていなければならない。
+\fBsched_setparam\fP()  はスレッドのスケジューリング方針における \fIparam\fP の妥当性をチェックする。
+\fIparam\->sched_priority\fP の値は \fBsched_get_priority_min\fP(2)  と
+\fBsched_get_priority_max\fP(2)  の範囲に入っていなければならない。
 
-スケジューリングの優先度と方針に関連する特権とリソース制限の
-議論に関しては
-.BR sched_setscheduler (2)
-を参照のこと。
+スケジューリングの優先度と方針に関連する特権とリソース制限の 議論に関しては \fBsched\fP(7)  を参照のこと。
 
-.BR sched_setparam ()
-と
-.BR sched_getparam ()
-が使用できる POSIX システムでは、
-.I <unistd.h>
-に
-.B _POSIX_PRIORITY_SCHEDULING
-が定義されている。
+\fBsched_setparam\fP()  と \fBsched_getparam\fP()  が使用できる POSIX システムでは、
+\fI<unistd.h>\fP に \fB_POSIX_PRIORITY_SCHEDULING\fP が定義されている。
 .SH 返り値
-成功した場合は
-.BR sched_setparam ()
-と
-.BR sched_getparam ()
-は 0 を返す。
-エラーの場合は \-1 が返され、
-.I errno
-が適切に設定される。
+成功した場合は \fBsched_setparam\fP()  と \fBsched_getparam\fP()  は 0 を返す。 エラーの場合は \-1
+が返され、 \fIerrno\fP が適切に設定される。
 .SH エラー
-.TP
-.B EINVAL
-引き数 \fIparam\fP が現在のスケジューリング方針においては
-無意味である。
-.TP
-.B EPERM
-呼び出し元のプロセスが適切な特権を持っていない
-(Linux では、
-.B CAP_SYS_NICE
+.TP 
+\fBEINVAL\fP
+Invalid arguments: \fIparam\fP is NULL or \fIpid\fP is negative
+.TP 
+\fBEINVAL\fP
+(\fBsched_setparam\fP()) 引き数 \fIparam\fP が現在のスケジューリング方針においては 無意味である。
+.TP 
+\fBEPERM\fP
+(\fBsched_setparam\fP()) 呼び出し元のプロセスが適切な特権を持っていない (Linux では、 \fBCAP_SYS_NICE\fP
 ケーパビリティを持っていない)。
-.TP
-.B ESRCH
-\fIpid\fP を ID に持つプロセスが見つからなかった。
+.TP 
+\fBESRCH\fP
+プロセス ID \fIpid\fP のプロセスが見つからなかった。
 .SH 準拠
-POSIX.1-2001.
-.SH 関連項目
-.BR getpriority (2),
-.BR nice (2),
-.BR sched_get_priority_max (2),
-.BR sched_get_priority_min (2),
-.BR sched_getaffinity (2),
-.BR sched_getscheduler (2),
-.BR sched_setaffinity (2),
-.BR sched_setscheduler (2),
-.BR setpriority (2),
-.BR capabilities (7)
+POSIX.1\-2001.
+.SH 注意
 .PP
-.I Programming for the real world \- POSIX.4
-by Bill O. Gallmeister, O'Reilly & Associates, Inc., ISBN 1-56592-074-0
+Linux では、スケジューリングパラメータは実際にはスレッド単位の属性である。 \fBsched\fP(7) 参照。
+.SH 関連項目
+.ad l
+.nh
+\fBgetpriority\fP(2), \fBnice\fP(2), \fBsched_get_priority_max\fP(2),
+\fBsched_get_priority_min\fP(2), \fBsched_getaffinity\fP(2),
+\fBsched_getscheduler\fP(2), \fBsched_setaffinity\fP(2), \fBsched_setscheduler\fP(2),
+\fBsched_setattr\fP(2), \fBsetpriority\fP(2), \fBcapabilities\fP(7), \fBsched\fP(7)
+.SH この文書について
+この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.67 の一部
+である。プロジェクトの説明とバグ報告に関する情報は
+http://www.kernel.org/doc/man\-pages/ に書かれている。