XINU
Data Structures | Macros | Variables
ports.h File Reference

ポートを用いたメッセージ送受信に用いる構造体や定数の宣言 More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  ptentry
 ポートテーブルエントリ More...
 
struct  ptnode
 メッセージリストのノード More...
 

Macros

#define isbadport(portid)   ((portid) < 0 || (portid) >= NPORTS)
 ポートIDが不正値かどうかを確認する。 More...
 
#define NPORTS   30
 ポートの最大数 More...
 
#define PT_ALLOC   3
 ポートが割り当てられた More...
 
#define PT_FREE   1
 ポートがFREE状態 More...
 
#define PT_LIMBO   2
 ポートが削除された、もしくはリセットされる More...
 
#define PT_MSGS   100
 システム内の最大メッセージ数 More...
 

Variables

struct ptentry porttab []
 ポートテーブルエントリのextern宣言 More...
 
struct ptnodeptfree
 フリーノードリストのextern宣言 More...
 
int32 ptnextid
 空きスロットを探す際に試みる次のポートID More...
 

Detailed Description

ポートを用いたメッセージ送受信に用いる構造体や定数の宣言

Definition in file ports.h.

Macro Definition Documentation

◆ isbadport

#define isbadport (   portid)    ((portid) < 0 || (portid) >= NPORTS)

ポートIDが不正値かどうかを確認する。

Parameters
[in]portidポートID
Returns
ポートIDが負の値もしくはポートの最大数を超えている場合はtrue、それ以外はfalseを返す。

Definition at line 64 of file ports.h.

Referenced by ptcount(), ptdelete(), ptrecv(), ptreset(), and ptsend().

◆ NPORTS

#define NPORTS   30

ポートの最大数

Definition at line 7 of file ports.h.

Referenced by ptcreate(), and ptinit().

◆ PT_ALLOC

#define PT_ALLOC   3

ポートが割り当てられた

Definition at line 15 of file ports.h.

Referenced by _ptclear(), ptcount(), ptcreate(), ptdelete(), ptrecv(), ptreset(), and ptsend().

◆ PT_FREE

#define PT_FREE   1

ポートがFREE状態

Definition at line 11 of file ports.h.

Referenced by ptcreate(), ptdelete(), and ptinit().

◆ PT_LIMBO

#define PT_LIMBO   2

ポートが削除された、もしくはリセットされる

Definition at line 13 of file ports.h.

Referenced by _ptclear().

◆ PT_MSGS

#define PT_MSGS   100

システム内の最大メッセージ数

Definition at line 9 of file ports.h.

Variable Documentation

◆ porttab

struct ptentry porttab[]

ポートテーブルエントリのextern宣言

ポートテーブルエントリのextern宣言

Definition at line 10 of file ptinit.c.

Referenced by ptcount(), ptcreate(), ptdelete(), ptinit(), ptrecv(), ptreset(), and ptsend().

◆ ptfree

struct ptnode* ptfree

フリーノードリストのextern宣言

フリーノードリストのextern宣言

Definition at line 8 of file ptinit.c.

Referenced by _ptclear(), ptrecv(), and ptsend().

◆ ptnextid

int32 ptnextid

空きスロットを探す際に試みる次のポートID

空きスロットを探す際に試みる次のポートID

Definition at line 12 of file ptinit.c.

Referenced by ptcreate(), ptdelete(), and ptinit().