XINU OSのkernel部分で使用する汎用的な宣言。 More...
Go to the source code of this file.
Macros | |
#define | CONTEXT 64 |
ランタイムスタックの関数呼び出しコンテキスト上のByte More... | |
#define | EOF (-2) |
ファイルの終端(End of File)に達した場合(読み込み処理に用いる) More... | |
#define | FALSE 0 |
Boolean False(0) More... | |
#define | local static |
ローカル関数かローカル変数の宣言 More... | |
#define | MINSTK 400 |
最小のスタックサイズ(Byte) More... | |
#define | NULL 0 |
連結リスト用のNULLポインタ More... | |
#define | NULLCH '\0' |
NULL文字(NULL終端) More... | |
#define | NULLSTK 8192 /* stack size for null process */ |
NULLプロセスのスタックサイズ More... | |
#define | NULLSTR "" |
空文字 More... | |
#define | OK (1) |
処理が成功した場合 More... | |
#define | QUANTUM 2 |
ミリ秒単位のタイムスライス More... | |
#define | SYSERR (-1) |
処理が失敗した場合 More... | |
#define | TIMEOUT (-3) |
システムコールがタイムアウトした場合 More... | |
#define | TRUE 1 |
Boolean True(1) More... | |
Typedefs | |
typedef byte | bool8 |
Boolean値 More... | |
typedef int32 | bpid32 |
バッファプールID More... | |
typedef unsigned char | byte |
符号なし8ビット値(unsigned char) More... | |
typedef int32 | dbid32 |
データブロックID(ファイルシステムで使用する) More... | |
typedef int32 | devcall |
デバイスコール関数 返り値の型 More... | |
typedef int32 | did32 |
デバイスID More... | |
typedef int32 | ibid32 |
ブロックIDのインデックス(ファイルシステムで使用する) More... | |
typedef short | int16 |
符号あり16ビット整数(short) More... | |
typedef int | int32 |
符号あり32ビット整数(int) More... | |
typedef void | interrupt |
割り込みハンドラ 返り値の型 More... | |
typedef uint32 | intmask |
保存された割り込みマスク More... | |
typedef int32 | pid32 |
プロセスID More... | |
typedef int16 | pri16 |
プロセス優先度 More... | |
typedef int32 | process |
プロセスの最上位レベル関数 返り値の型 More... | |
typedef int16 | qid16 |
キューID More... | |
typedef int32 | shellcmd |
シェルコール関数 返り値の型 More... | |
typedef int32 | sid32 |
セマフォID More... | |
typedef int32 | status |
ステータスを意味する返り値の型(OK/SYSERR) More... | |
typedef int32 | syscall |
システムコール関数 返り値の型 More... | |
typedef int32 | uid32 |
UDPテーブルディスクリプタのID. More... | |
typedef unsigned short | uint16 |
符号なし16ビット整数(unsigned short) More... | |
typedef unsigned int | uint32 |
符号なし32ビット整数(unsigned int) More... | |
typedef unsigned long long | uint64 |
符号なし64ビット整数(unsigned long long) More... | |
typedef unsigned char | uint8 |
符号なし8ビット値(unsigned char) More... | |
typedef uint32 | umsg32 |
プロセス間で渡されるメッセージ More... | |
Functions | |
syscall | kgetc (void) |
ポーリングI/Oを使用して、コンソールのシリアルラインから文字を読み取る。 More... | |
syscall | kprintf (char *fmt,...) |
ポーリングI/Oを使用して、フォーマットされた文字列をコンソールに出力する。 More... | |
syscall | kputc (byte) |
ポーリングI/Oを使用して、コンソールのシリアルラインに文字を書き込む。 More... | |
Variables | |
qid16 | readylist |
READY状態のプロセスリストに対するグローバルID. More... | |
XINU OSのkernel部分で使用する汎用的な宣言。
Definition in file kernel.h.
#define EOF (-2) |
#define FALSE 0 |
Boolean False(0)
Definition at line 63 of file kernel.h.
Referenced by arp_in(), ascdate(), create(), lfdballoc(), lfflush(), lfiballoc(), lflinit(), lfsetup(), lfsinit(), lfsopen(), rdscomm(), rdsinit(), rdswrite(), receive(), recvclr(), recvtime(), resched_cntl(), rfsinit(), shell(), ttycontrol(), ttyhandle_in(), ttyinit(), xsh_date(), xsh_memdump(), xsh_netinfo(), and xsh_ping().
#define NULL 0 |
連結リスト用のNULLポインタ
Definition at line 68 of file kernel.h.
Referenced by _ptclear(), addargs(), dhcp_get_opt_val(), dnslookup(), ethinit(), ethread(), ethwrite(), freemem(), getmem(), getstk(), gpiohandler(), gpioinit(), if(), lflinit(), main(), meminit(), mkbufpool(), net_init(), nulluser(), printFreeList(), printMemUse(), ptcreate(), ptinit(), ptrecv(), ptsend(), rdsbufalloc(), rdsinit(), shell(), startup(), sysinit(), and tftpget_mb().
#define NULLCH '\0' |
NULL文字(NULL終端)
Definition at line 70 of file kernel.h.
Referenced by arp_alloc(), create(), dns_getrname(), dot2ip(), ethinit(), lexan(), lfgetmode(), lflinit(), lfscreate(), lfsinit(), lfsopen(), namcpy(), naminit(), namlen(), namrepl(), net_init(), parseval(), rdscontrol(), rdsinit(), rdsopen(), rdsprocess(), rflinit(), rflread(), rflwrite(), rfscontrol(), rfsgetmode(), rfsopen(), shell(), sysinit(), tftpget_mb(), xsh_cat(), xsh_help(), xsh_kill(), xsh_rdstest(), and xsh_sleep().
#define NULLSTK 8192 /* stack size for null process */ |
#define OK (1) |
処理が成功した場合
Definition at line 77 of file kernel.h.
Referenced by addargs(), arp_in(), arp_resolve(), ascdate(), bufinit(), delay(), dot2ip(), eth_phy_read(), eth_phy_reset(), eth_phy_write(), ethcontrol(), ethinit(), freebuf(), freemem(), getlocalip(), gettime(), getutime(), gpiocontrol(), gpioinit(), gpioread(), gpioselect(), gpiowrite(), icmp_in(), icmp_recv(), icmp_release(), initintc(), insert(), insertd(), ionull(), ip_enqueue(), ip_out(), ip_send(), ipout(), kill(), kprintf(), kputc(), lfdbfree(), lfflush(), lfibput(), lflclose(), lflinit(), lflputc(), lflseek(), lfscheck(), lfsckfmt(), lfscreate(), lfsetup(), lfsinit(), lftruncate(), main(), mark(), mount(), namcpy(), naminit(), ptdelete(), ptinit(), ptreset(), ptsend(), ramclose(), raminit(), ramread(), ramwrite(), rdsclose(), rdscomm(), rdscontrol(), rdsinit(), rdsprocess(), rdsread(), rdswrite(), ready(), recvclr(), resched_cntl(), rflclose(), rflinit(), rflputc(), rflseek(), rfscontrol(), rfsinit(), rfsndmsg(), semdelete(), semreset(), send(), set_evec(), shell(), signal(), signaln(), sleep(), sleepms(), spicontrol(), spiinit(), startup(), ttycontrol(), ttyinit(), ttyputc(), ttywrite(), udp_in(), udp_recv(), udp_recvaddr(), udp_release(), udp_send(), udp_sendto(), unsleep(), wait(), xsh_kill(), xsh_netinfo(), and yield().
#define QUANTUM 2 |
ミリ秒単位のタイムスライス
Definition at line 93 of file kernel.h.
Referenced by clkhandler(), clkinit(), and resched().
#define SYSERR (-1) |
処理が失敗した場合
Definition at line 79 of file kernel.h.
Referenced by addargs(), arp_alloc(), arp_in(), arp_resolve(), chprio(), close(), control(), create(), dequeue(), dhcp_bld_req(), dns_bldq(), dns_geta(), dnslookup(), dot2ip(), enqueue(), eth_phy_read(), eth_phy_reset(), eth_phy_write(), ethcontrol(), ethinit(), freebuf(), freemem(), getbuf(), getc(), getdev(), getlocalip(), getmem(), getprio(), getstk(), gettime(), getutime(), gpiocontrol(), icmp_in(), icmp_mkpkt(), icmp_recv(), icmp_register(), icmp_release(), icmp_send(), init(), insert(), insertd(), ioerr(), ip_enqueue(), ip_out(), ip_send(), kill(), lexan(), lfdballoc(), lfflush(), lfgetmode(), lfibput(), lflclose(), lflcontrol(), lflgetc(), lflputc(), lflread(), lflseek(), lflwrite(), lfscheck(), lfsckfmt(), lfscreate(), lfsopen(), mark(), mkbufpool(), mount(), namcpy(), naminit(), namlen(), nammap(), namopen(), namrepl(), net_init(), netin(), newpid(), newqueue(), newsem(), open(), ptcount(), ptcreate(), ptdelete(), ptinit(), ptrecv(), ptreset(), ptsend(), putc(), rdsbufalloc(), rdsclose(), rdscomm(), rdscontrol(), rdsinit(), rdsopen(), rdsprocess(), rdsread(), rdswrite(), read(), ready(), recvtime(), resched_cntl(), resume(), rflclose(), rflgetc(), rflputc(), rflread(), rflseek(), rflwrite(), rfscomm(), rfscontrol(), rfsgetmode(), rfsinit(), rfsndmsg(), rfsopen(), seek(), semcount(), semcreate(), semdelete(), semreset(), send(), set_evec(), shell(), signal(), signaln(), sleep(), sleepms(), startup(), suspend(), tftp_send1(), tftpget_mb(), ttycontrol(), ttyread(), ttywrite(), udp_recv(), udp_recvaddr(), udp_register(), udp_release(), udp_send(), udp_sendto(), unsleep(), wait(), write(), xsh_cat(), xsh_date(), xsh_kill(), xsh_ls(), xsh_netinfo(), xsh_ping(), xsh_rdstest(), xsh_udpecho(), and xsh_udpeserver().
#define TIMEOUT (-3) |
システムコールがタイムアウトした場合
Definition at line 83 of file kernel.h.
Referenced by arp_resolve(), dnslookup(), getlocalip(), getutime(), icmp_recv(), rdscomm(), rdscontrol(), rdsopen(), rdsprocess(), recvtime(), rflread(), rflwrite(), rfscomm(), rfscontrol(), rfsndmsg(), rfsopen(), tftp_send1(), tftpget_mb(), udp_recv(), udp_recvaddr(), xsh_ping(), xsh_udpecho(), and xsh_udpeserver().
#define TRUE 1 |
Boolean True(1)
Definition at line 65 of file kernel.h.
Referenced by arp_in(), ascdate(), getlocalip(), getutime(), hexdump(), lflputc(), lfsetup(), lfsopen(), lftruncate(), main(), nulluser(), panic(), rdscomm(), rdscontrol(), rdsprocess(), rdsread(), rdswrite(), recvclr(), resched(), rfscomm(), send(), shell(), ttycontrol(), ttyhandle_in(), ttyinit(), xsh_ls(), xsh_memdump(), xsh_ping(), and xsh_udpeserver().
typedef unsigned long long uint64 |
syscall kgetc | ( | void | ) |
ポーリングI/Oを使用して、コンソールのシリアルラインから文字を読み取る。
Definition at line 59 of file kprintf.c.
References _doprnt(), CONSOLE, devtab, disable(), dentry::dvcsr, uart_csreg::ier, uart_csreg::lsr, restore(), and UART_LSR_DR.
syscall kprintf | ( | char * | fmt, |
... | |||
) |
ポーリングI/Oを使用して、フォーマットされた文字列をコンソールに出力する。
ポーリングI/Oを使用して、フォーマットされた文字列をコンソールに出力する。
Polled I/Oを使用したシステムコール。
[in] | fmt | 文字列を表示する際のフォーマット情報 |
[in] | ... | 可変長引数 |
Definition at line 98 of file kprintf.c.
References _doprnt(), CONSOLE, devtab, kputc(), OK, va_end, and va_start.
Referenced by arp_alloc(), arp_dump(), arp_in(), dhcp_bld_req(), dnslookup(), ethinit(), ethread(), getlocalip(), hexadump(), hexdump(), ip_enqueue(), ip_in(), ipout(), irq_dispatch(), lflcontrol(), lfsckfmt(), lfsopen(), main(), naminit(), nulluser(), panic(), pdump(), pdumph(), rdscomm(), rdscontrol(), rdsopen(), rflread(), rflwrite(), rfscomm(), rfscontrol(), rfsndmsg(), rfsopen(), startup(), stop(), sysinit(), tftp_send1(), tftpget_mb(), xdone(), and xsh_rdstest().
ポーリングI/Oを使用して、コンソールのシリアルラインに文字を書き込む。
Definition at line 13 of file kprintf.c.
References uart_csreg::buffer, CONSOLE, devtab, disable(), dentry::dvcsr, uart_csreg::lsr, OK, restore(), and UART_LSR_THRE.
Referenced by kprintf().