XINU
Data Structures | Macros | Variables
rdisksys.h File Reference
This graph shows which files directly or indirectly include this file:

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 []
 

Macro Definition Documentation

◆ RD_BLKSIZ

#define RD_BLKSIZ   512

Definition at line 9 of file rdisksys.h.

Referenced by rdsprocess(), rdsread(), rdswrite(), and xsh_rdstest().

◆ RD_BUFFS

#define RD_BUFFS   64 /* Number of disk buffers */

Definition at line 30 of file rdisksys.h.

Referenced by rdsinit().

◆ RD_FREE

#define RD_FREE   0 /* Device is available */

Definition at line 36 of file rdisksys.h.

Referenced by rdsclose(), rdsinit(), and rdsopen().

◆ RD_IDLEN

#define RD_IDLEN   64 /* Size of a remote disk ID */

Definition at line 29 of file rdisksys.h.

Referenced by rdscontrol(), rdsopen(), and rdsprocess().

◆ RD_INVALID

#define RD_INVALID   1 /* Buffer does not contain data */

Definition at line 49 of file rdisksys.h.

Referenced by rdsclose(), rdscontrol(), rdsinit(), and rdsread().

◆ RD_LOC_PORT

#define RD_LOC_PORT   33124 /* Base port number - minor dev */

Definition at line 22 of file rdisksys.h.

Referenced by rdsinit().

◆ RD_MAX_REQ

#define RD_MAX_REQ   RD_MSG_DREQ /* Maximum request type */

Definition at line 136 of file rdisksys.h.

◆ RD_MIN_REQ

#define RD_MIN_REQ   RD_MSG_RREQ /* Minimum request type */

Definition at line 135 of file rdisksys.h.

◆ RD_MSG_CREQ

#define RD_MSG_CREQ   0x0040 /* Close request and response */

Definition at line 129 of file rdisksys.h.

◆ RD_MSG_CRES

#define RD_MSG_CRES   (RD_MSG_CREQ | RD_MSG_RESPONSE)

Definition at line 130 of file rdisksys.h.

◆ RD_MSG_DREQ

#define RD_MSG_DREQ   0x0050 /* Delete request and response */

Definition at line 132 of file rdisksys.h.

Referenced by rdscontrol().

◆ RD_MSG_DRES

#define RD_MSG_DRES   (RD_MSG_DREQ | RD_MSG_RESPONSE)

Definition at line 133 of file rdisksys.h.

◆ RD_MSG_HDR

#define RD_MSG_HDR
Value:
/* Common message fields */\
uint16 rd_type; /* Message type */\
uint16 rd_status; /* 0 in req, status in response */\
uint32 rd_seq; /* Message sequence number */\
char rd_id[RD_IDLEN]; /* Null-terminated disk ID */
#define RD_IDLEN
Definition: rdisksys.h:29

Definition at line 140 of file rdisksys.h.

◆ RD_MSG_OREQ

#define RD_MSG_OREQ   0x0030 /* Open request and response */

Definition at line 126 of file rdisksys.h.

Referenced by rdsopen().

◆ RD_MSG_ORES

#define RD_MSG_ORES   (RD_MSG_OREQ | RD_MSG_RESPONSE)

Definition at line 127 of file rdisksys.h.

◆ RD_MSG_RESPONSE

#define RD_MSG_RESPONSE   0x0100 /* Bit that indicates response */

Definition at line 118 of file rdisksys.h.

Referenced by rdscomm().

◆ RD_MSG_RREQ

#define RD_MSG_RREQ   0x0010 /* Read request and response */

Definition at line 120 of file rdisksys.h.

Referenced by rdsprocess().

◆ RD_MSG_RRES

#define RD_MSG_RRES   (RD_MSG_RREQ | RD_MSG_RESPONSE)

Definition at line 121 of file rdisksys.h.

◆ RD_MSG_WREQ

#define RD_MSG_WREQ   0x0020 /* Write request and response */

Definition at line 123 of file rdisksys.h.

Referenced by rdsprocess().

◆ RD_MSG_WRES

#define RD_MSG_WRES   (RD_MSG_WREQ | RD_MSG_RESPONSE)

Definition at line 124 of file rdisksys.h.

◆ RD_OP_READ

#define RD_OP_READ   1 /* Read operation on req. list */

Definition at line 42 of file rdisksys.h.

Referenced by rdsprocess(), and rdsread().

◆ RD_OP_SYNC

#define RD_OP_SYNC   3 /* Sync operation on req. list */

Definition at line 44 of file rdisksys.h.

Referenced by rdscontrol(), and rdsprocess().

◆ RD_OP_WRITE

#define RD_OP_WRITE   2 /* Write operation on req. list */

Definition at line 43 of file rdisksys.h.

Referenced by rdsprocess(), rdsread(), and rdswrite().

◆ RD_OPEN

#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().

◆ RD_PEND

#define RD_PEND   2 /* Open is pending */

Definition at line 38 of file rdisksys.h.

Referenced by rdsopen().

◆ RD_PRIO

#define RD_PRIO   200 /* Priorty of comm. process */

Definition at line 32 of file rdisksys.h.

Referenced by rdsinit().

◆ RD_RETRIES

#define RD_RETRIES   3 /* Times to retry sending a msg */

Definition at line 105 of file rdisksys.h.

Referenced by rdscomm().

◆ RD_SERVER_IP

#define RD_SERVER_IP   "255.255.255.255"

Definition at line 14 of file rdisksys.h.

Referenced by rdsinit().

◆ RD_SERVER_PORT

#define RD_SERVER_PORT   33124

Definition at line 18 of file rdisksys.h.

Referenced by rdsinit().

◆ RD_STACK

#define RD_STACK   16384 /* Stack size for comm. process */

Definition at line 31 of file rdisksys.h.

Referenced by rdsinit().

◆ RD_TIMEOUT

#define RD_TIMEOUT   2000 /* Timeout for reply (2 seconds)*/

Definition at line 106 of file rdisksys.h.

Referenced by rdscomm().

◆ RD_VALID

#define RD_VALID   0 /* Buffer contains valid data */

Definition at line 48 of file rdisksys.h.

Referenced by rdswrite().

◆ RDS_CTL_DEL

#define RDS_CTL_DEL   1 /* Delete (erase) an entire disk*/

Definition at line 110 of file rdisksys.h.

Referenced by rdscontrol().

◆ RDS_CTL_SYNC

#define RDS_CTL_SYNC   2 /* Write all pending blocks */

Definition at line 111 of file rdisksys.h.

Referenced by rdscontrol().

Variable Documentation

◆ rdstab

struct rdscblk rdstab[]

Definition at line 11 of file rdsinit.c.

Referenced by rdsclose(), rdscontrol(), rdsinit(), rdsopen(), rdsread(), and rdswrite().