Go to the source code of this file.
◆ rdsopen()
devcall rdsopen |
( |
struct dentry * |
devptr, |
|
|
char * |
diskid, |
|
|
char * |
mode |
|
) |
| |
Definition at line 10 of file rdsopen.c.
References dentry::dvminor, dentry::dvnum, htons, kprintf(), memset(), ntohs, NULLCH, RD_FREE, rdscblk::rd_id, RD_IDLEN, RD_MSG_OREQ, RD_OPEN, RD_PEND, rdscblk::rd_state, rdscomm(), rdstab, SYSERR, and TIMEOUT.
38 while ( (*idto++ = *idfrom++) !=
NULLCH) {
54 msg.rd_status =
htons(0);
60 while ( (*idto++ = *idfrom++) !=
NULLCH ) {
78 kprintf(
"Timeout during remote file open\n\r");
81 }
else if (
ntohs(resp.rd_status) != 0) {
syscall kprintf(char *fmt,...)
ポーリングI/Oを使用して、フォーマットされた文字列をコンソールに出力する。
#define TIMEOUT
システムコールがタイムアウトした場合
int int32
符号あり32ビット整数(int)
void * memset(void *, const int, int32)
指定のByteブロックに対して、同じ値をNバイト分書き込む。
status rdscomm(struct rd_msg_hdr *, int32, struct rd_msg_hdr *, int32, struct rdscblk *)
#define NULLCH
NULL文字(NULL終端)