|
XINU
|

Go to the source code of this file.
Data Structures | |
| struct | rd_msg_creq |
| struct | rd_msg_cres |
| struct | rd_msg_dreq |
| struct | rd_msg_dres |
| struct | rd_msg_hdr |
| struct | rd_msg_oreq |
| struct | rd_msg_ores |
| struct | rd_msg_rreq |
| struct | rd_msg_rres |
| struct | rd_msg_wreq |
| struct | rd_msg_wres |
| struct | rdbuff |
| struct | rdscblk |
Macros | |
| #define | RD_BLKSIZ 512 |
| #define | RD_BUFFS 64 /* Number of disk buffers */ |
| #define | RD_FREE 0 /* Device is available */ |
| #define | RD_IDLEN 64 /* Size of a remote disk ID */ |
| #define | RD_INVALID 1 /* Buffer does not contain data */ |
| #define | RD_LOC_PORT 33124 /* Base port number - minor dev */ |
| #define | RD_MAX_REQ RD_MSG_DREQ /* Maximum request type */ |
| #define | RD_MIN_REQ RD_MSG_RREQ /* Minimum request type */ |
| #define | RD_MSG_CREQ 0x0040 /* Close request and response */ |
| #define | RD_MSG_CRES (RD_MSG_CREQ | RD_MSG_RESPONSE) |
| #define | RD_MSG_DREQ 0x0050 /* Delete request and response */ |
| #define | RD_MSG_DRES (RD_MSG_DREQ | RD_MSG_RESPONSE) |
| #define | RD_MSG_HDR |
| #define | RD_MSG_OREQ 0x0030 /* Open request and response */ |
| #define | RD_MSG_ORES (RD_MSG_OREQ | RD_MSG_RESPONSE) |
| #define | RD_MSG_RESPONSE 0x0100 /* Bit that indicates response */ |
| #define | RD_MSG_RREQ 0x0010 /* Read request and response */ |
| #define | RD_MSG_RRES (RD_MSG_RREQ | RD_MSG_RESPONSE) |
| #define | RD_MSG_WREQ 0x0020 /* Write request and response */ |
| #define | RD_MSG_WRES (RD_MSG_WREQ | RD_MSG_RESPONSE) |
| #define | RD_OP_READ 1 /* Read operation on req. list */ |
| #define | RD_OP_SYNC 3 /* Sync operation on req. list */ |
| #define | RD_OP_WRITE 2 /* Write operation on req. list */ |
| #define | RD_OPEN 1 /* Device is open (in use) */ |
| #define | RD_PEND 2 /* Open is pending */ |
| #define | RD_PRIO 200 /* Priorty of comm. process */ |
| #define | RD_RETRIES 3 /* Times to retry sending a msg */ |
| #define | RD_SERVER_IP "255.255.255.255" |
| #define | RD_SERVER_PORT 33124 |
| #define | RD_STACK 16384 /* Stack size for comm. process */ |
| #define | RD_TIMEOUT 2000 /* Timeout for reply (2 seconds)*/ |
| #define | RD_VALID 0 /* Buffer contains valid data */ |
| #define | RDS_CTL_DEL 1 /* Delete (erase) an entire disk*/ |
| #define | RDS_CTL_SYNC 2 /* Write all pending blocks */ |
Variables | |
| struct rdscblk | rdstab [] |
| #define RD_BLKSIZ 512 |
Definition at line 9 of file rdisksys.h.
Referenced by rdsprocess(), rdsread(), rdswrite(), and xsh_rdstest().
| #define RD_BUFFS 64 /* Number of disk buffers */ |
Definition at line 30 of file rdisksys.h.
Referenced by rdsinit().
| #define RD_FREE 0 /* Device is available */ |
Definition at line 36 of file rdisksys.h.
Referenced by rdsclose(), rdsinit(), and rdsopen().
| #define RD_IDLEN 64 /* Size of a remote disk ID */ |
Definition at line 29 of file rdisksys.h.
Referenced by rdscontrol(), rdsopen(), and rdsprocess().
| #define RD_INVALID 1 /* Buffer does not contain data */ |
Definition at line 49 of file rdisksys.h.
Referenced by rdsclose(), rdscontrol(), rdsinit(), and rdsread().
| #define RD_LOC_PORT 33124 /* Base port number - minor dev */ |
Definition at line 22 of file rdisksys.h.
Referenced by rdsinit().
| #define RD_MAX_REQ RD_MSG_DREQ /* Maximum request type */ |
Definition at line 136 of file rdisksys.h.
| #define RD_MIN_REQ RD_MSG_RREQ /* Minimum request type */ |
Definition at line 135 of file rdisksys.h.
| #define RD_MSG_CREQ 0x0040 /* Close request and response */ |
Definition at line 129 of file rdisksys.h.
| #define RD_MSG_CRES (RD_MSG_CREQ | RD_MSG_RESPONSE) |
Definition at line 130 of file rdisksys.h.
| #define RD_MSG_DREQ 0x0050 /* Delete request and response */ |
Definition at line 132 of file rdisksys.h.
Referenced by rdscontrol().
| #define RD_MSG_DRES (RD_MSG_DREQ | RD_MSG_RESPONSE) |
Definition at line 133 of file rdisksys.h.
| #define RD_MSG_HDR |
Definition at line 140 of file rdisksys.h.
| #define RD_MSG_OREQ 0x0030 /* Open request and response */ |
Definition at line 126 of file rdisksys.h.
Referenced by rdsopen().
| #define RD_MSG_ORES (RD_MSG_OREQ | RD_MSG_RESPONSE) |
Definition at line 127 of file rdisksys.h.
| #define RD_MSG_RESPONSE 0x0100 /* Bit that indicates response */ |
Definition at line 118 of file rdisksys.h.
Referenced by rdscomm().
| #define RD_MSG_RREQ 0x0010 /* Read request and response */ |
Definition at line 120 of file rdisksys.h.
Referenced by rdsprocess().
| #define RD_MSG_RRES (RD_MSG_RREQ | RD_MSG_RESPONSE) |
Definition at line 121 of file rdisksys.h.
| #define RD_MSG_WREQ 0x0020 /* Write request and response */ |
Definition at line 123 of file rdisksys.h.
Referenced by rdsprocess().
| #define RD_MSG_WRES (RD_MSG_WREQ | RD_MSG_RESPONSE) |
Definition at line 124 of file rdisksys.h.
| #define RD_OP_READ 1 /* Read operation on req. list */ |
Definition at line 42 of file rdisksys.h.
Referenced by rdsprocess(), and rdsread().
| #define RD_OP_SYNC 3 /* Sync operation on req. list */ |
Definition at line 44 of file rdisksys.h.
Referenced by rdscontrol(), and rdsprocess().
| #define RD_OP_WRITE 2 /* Write operation on req. list */ |
Definition at line 43 of file rdisksys.h.
Referenced by rdsprocess(), rdsread(), and rdswrite().
| #define RD_OPEN 1 /* Device is open (in use) */ |
Definition at line 37 of file rdisksys.h.
Referenced by rdsclose(), rdscontrol(), rdsopen(), rdsread(), and rdswrite().
| #define RD_PEND 2 /* Open is pending */ |
Definition at line 38 of file rdisksys.h.
Referenced by rdsopen().
| #define RD_PRIO 200 /* Priorty of comm. process */ |
Definition at line 32 of file rdisksys.h.
Referenced by rdsinit().
| #define RD_RETRIES 3 /* Times to retry sending a msg */ |
Definition at line 105 of file rdisksys.h.
Referenced by rdscomm().
| #define RD_SERVER_IP "255.255.255.255" |
Definition at line 14 of file rdisksys.h.
Referenced by rdsinit().
| #define RD_SERVER_PORT 33124 |
Definition at line 18 of file rdisksys.h.
Referenced by rdsinit().
| #define RD_STACK 16384 /* Stack size for comm. process */ |
Definition at line 31 of file rdisksys.h.
Referenced by rdsinit().
| #define RD_TIMEOUT 2000 /* Timeout for reply (2 seconds)*/ |
Definition at line 106 of file rdisksys.h.
Referenced by rdscomm().
| #define RD_VALID 0 /* Buffer contains valid data */ |
Definition at line 48 of file rdisksys.h.
Referenced by rdswrite().
| #define RDS_CTL_DEL 1 /* Delete (erase) an entire disk*/ |
Definition at line 110 of file rdisksys.h.
Referenced by rdscontrol().
| #define RDS_CTL_SYNC 2 /* Write all pending blocks */ |
Definition at line 111 of file rdisksys.h.
Referenced by rdscontrol().
| struct rdscblk rdstab[] |
Definition at line 11 of file rdsinit.c.
Referenced by rdsclose(), rdscontrol(), rdsinit(), rdsopen(), rdsread(), and rdswrite().
1.8.13