XINU
|
ポートをリセットを行う。 More...
#include <xinu.h>
Go to the source code of this file.
Functions | |
syscall | ptreset (int32 portid, int32(*disp)(int32)) |
ポートをリセットを行う。 More... | |
ポートをリセットを行う。
待機中のプロセスとメッセージを解放した後、ポートを再利用できるようにする。
Step1. 割り込みを禁止する。
Step2. ポートIDが不正、もしくはポートがALLOC状態でなければ割り込み状態を復元し、処理を終了する。
Step3. ポートを用いたメッセージと待機中プロセスを解放し、セマフォはリセットする。
Step4. 割り込み状態を復元する。
[in] | portid | 削除対象のポート |
[in] | disp | 待機メッセージ処分用の関数ポインタ |
Definition at line 21 of file ptreset.c.
References _ptclear(), disable(), isbadport, OK, porttab, PT_ALLOC, ptentry::ptstate, restore(), and SYSERR.