JM プロジェクトは、主に Linux 関連のマニュアルページの日本語ページを翻訳・公開しています。
... .h > int pthread_setschedparam(pthread_t thread , int policy , const struct sched_param * param ); int pthread_getschedparam(pthread_t thread , int * pol ... icy , struct sched_param * param ); -pthread でコンパイルしてリンクする。 説明 pthread_setschedparam () 関数は、スレッド thread の スケジューリング ... licy は thread の新しいスケジューリングポリシーを指定する。 policy に指定できる値とその意味は sched (7) で説明されている。 param が指す構造体は thread の新しいスケジューリングパラメーターを 指定する。スケジューリングパラメーターは以下の構造体で管理され ... ... .h > int pthread_setschedparam(pthread_t thread , int policy , const struct sched_param * param ); int pthread_getschedparam(pthread_t thread , int * pol ... icy , struct sched_param * param ); -pthread でコンパイルしてリンクする。 説明 pthread_setschedparam () 関数は、スレッド thread の スケジューリング ... licy は thread の新しいスケジューリングポリシーを指定する。 policy に指定できる値とその意味は sched (7) で説明されている。 param が指す構造体は thread の新しいスケジューリングパラメーターを 指定する。スケジューリングパラメーターは以下の構造体で管理され ... ... st struct sched_param * param ); int sched_getparam(pid_t pid , struct sched_param * param ); struct sched_param { ... int sched_priority ; ... ... }; 説明 sched_setparam () sets the scheduling parameters associated with the scheduling policy for the thread whose thread ID is specified in pid ... . If pid is zero, then the parameters of the calling thread are set. The interpretation of the argument param depends on the scheduling policy of the threa ... ... st struct sched_param * param ); int sched_getparam(pid_t pid , struct sched_param * param ); struct sched_param { ... int sched_priority ; ... ... }; 説明 sched_setparam () sets the scheduling parameters associated with the scheduling policy for the thread whose thread ID is specified in pid ... . If pid is zero, then the parameters of the calling thread are set. The interpretation of the argument param depends on the scheduling policy of the threa ... ... う 書式 #include < pthread.h > int pthread_attr_setschedparam(pthread_attr_t * attr , const struct sched_param * param ); int pthread_attr_getschedparam(const pthread_attr_t * attr , s ... truct sched_param * param ); -pthread でコンパイルしてリンクする。 説明 pthread_attr_setschedparam () 関数は、 attr が参照するスレッド属性オ ... ブジェクトのスケジューリング パラメーター属性を param が指すバッファーで指定された値に設定する。 これらの属性により、スレッド属性オブジェクト attr を使って 作成されるスレッドの ... ... う 書式 #include < pthread.h > int pthread_attr_setschedparam(pthread_attr_t * attr , const struct sched_param * param ); int pthread_attr_getschedparam(const pthread_attr_t * attr , s ... truct sched_param * param ); -pthread でコンパイルしてリンクする。 説明 pthread_attr_setschedparam () 関数は、 attr が参照するスレッド属性オ ... ブジェクトのスケジューリング パラメーター属性を param が指すバッファーで指定された値に設定する。 これらの属性により、スレッド属性オブジェクト attr を使って 作成されるスレッドの ... ... duler(pid_t pid , int policy , const struct sched_param * param ); int sched_getscheduler(pid_t pid ); 説明 sched_setscheduler () システムコールは、 pid で指定された ID を持つスレ ... 呼び出したスレッド自身のスケジューリングポリシーとスケジューリングパラメーターが設定される。 スケジューリングパラメーターは param 引数で、以下の形式の構造体へのポインターを指定する。 struct sched_param { ... int sched_priority; ... }; 現在の実装では、こ ... の構造体のフィールドは sched_priority だけである。 param がどのように解釈されるかは選択されたポリシーによって変わる。 現在のところ、 Linux では、 以下の「通常」の (つまり、リアルタ ... ... duler(pid_t pid , int policy , const struct sched_param * param ); int sched_getscheduler(pid_t pid ); 説明 sched_setscheduler () システムコールは、 pid で指定された ID を持つスレ ... 呼び出したスレッド自身のスケジューリングポリシーとスケジューリングパラメーターが設定される。 スケジューリングパラメーターは param 引数で、以下の形式の構造体へのポインターを指定する。 struct sched_param { ... int sched_priority; ... }; 現在の実装では、こ ... の構造体のフィールドは sched_priority だけである。 param がどのように解釈されるかは選択されたポリシーによって変わる。 現在のところ、 Linux では、 以下の「通常」の (つまり、リアルタ ... ... es ); int finit_module(int fd , const char * param_values , int flags ); 注意 : glibc では、 ヘッダーファイルでの init_module () の宣言はなく、 finit_module () のラッパー関数 ... はバッファーのサイズを指定する。 モジュールイメージは、 実行中のカーネル用に作成された有効な ELF イメージである必要がある。 param_values 引数はモジュールパラメーター値を指定するスペース区切りの文字列である (モジュールパラメーターは module_param () や m ... odule_param_array () を使ってモジュール内で定義される)。 カーネルはこの文字列を解釈し、指定されたパラメーターを初期化する。 各パラメー ... ... es ); int finit_module(int fd , const char * param_values , int flags ); 注意 : glibc では、 ヘッダーファイルでの init_module () の宣言はなく、 finit_module () のラッパー関数 ... はバッファーのサイズを指定する。 モジュールイメージは、 実行中のカーネル用に作成された有効な ELF イメージである必要がある。 param_values 引数はモジュールパラメーター値を指定するスペース区切りの文字列である (モジュールパラメーターは module_param () や m ... odule_param_array () を使ってモジュール内で定義される)。 カーネルはこの文字列を解釈し、指定されたパラメーターを初期化する。 各パラメー ... 日本語の文書やマニュアルを配布している個人/プロジェクトへのリンクです。