From: Jorrit Herder Date: Thu, 20 Oct 2005 20:34:34 +0000 (+0000) Subject: New IPC error codes: ESRCDIED, EDSTDIED, ETRAPDENIED. X-Git-Tag: v3.1.2a~587 X-Git-Url: http://zhaoyanbai.com/repos/man.dnssec-checkds.html?a=commitdiff_plain;h=e6c1aeade04a293bf9fbfa66951867382e3a7cd3;p=minix.git New IPC error codes: ESRCDIED, EDSTDIED, ETRAPDENIED. New getsysinfo type to get DS store contents from IS. New Data Store (DS) server message types and arguments. --- diff --git a/include/errno.h b/include/errno.h index 28cec0d84..7bd2284b9 100755 --- a/include/errno.h +++ b/include/errno.h @@ -111,6 +111,9 @@ extern int errno; /* place where the error numbers go */ #define EDEADSRCDST (_SIGN 105) /* source or destination is not alive */ #define ENOTREADY (_SIGN 106) /* source or destination is not ready */ #define EBADREQUEST (_SIGN 107) /* destination cannot handle request */ +#define ESRCDIED (_SIGN 108) /* source just died */ +#define EDSTDIED (_SIGN 109) /* destination just died */ +#define ETRAPDENIED (_SIGN 110) /* IPC trap not allowed */ #define EDONTREPLY (_SIGN 201) /* pseudo-code: don't send a reply */ #endif /* _ERRNO_H */ diff --git a/include/minix/com.h b/include/minix/com.h index fa30bd79f..41a37d38d 100755 --- a/include/minix/com.h +++ b/include/minix/com.h @@ -38,7 +38,8 @@ #define LOG_PROC_NR 4 /* log device driver */ #define TTY_PROC_NR 5 /* terminal (TTY) driver */ #define DRVR_PROC_NR 6 /* device driver for boot medium */ -#define INIT_PROC_NR 7 /* init -- goes multiuser */ +#define DS_PROC_NR 7 /* data store server */ +#define INIT_PROC_NR 8 /* init -- goes multiuser */ /* Number of processes contained in the system image. */ #define NR_BOOT_PROCS (NR_TASKS + INIT_PROC_NR + 1) @@ -77,7 +78,7 @@ #define DEV_RQ_BASE 0x400 /* base for device request types */ #define DEV_RS_BASE 0x500 /* base for device response types */ -#define CANCEL (DEV_RQ_BASE + 0) /* general req to force a task to cancel */ +#define CANCEL (DEV_RQ_BASE + 0) /* force a task to cancel */ #define DEV_READ (DEV_RQ_BASE + 3) /* read from minor device */ #define DEV_WRITE (DEV_RQ_BASE + 4) /* write to minor device */ #define DEV_IOCTL (DEV_RQ_BASE + 5) /* I/O control code */ @@ -378,20 +379,37 @@ #define SEL_TIMEOUT m8_p4 /*===========================================================================* - * Messages for system management server * + * Messages for the Reincarnation Server * *===========================================================================*/ -#define SRV_RQ_BASE 0x700 +#define RS_RQ_BASE 0x700 -#define SRV_UP (SRV_RQ_BASE + 0) /* start system service */ -#define SRV_DOWN (SRV_RQ_BASE + 1) /* stop system service */ -#define SRV_SHUTDOWN (SRV_RQ_BASE + 2) /* alert about shutdown */ +#define RS_UP (RS_RQ_BASE + 0) /* start system service */ +#define RS_DOWN (RS_RQ_BASE + 1) /* stop system service */ +#define RS_REFRESH (RS_RQ_BASE + 2) /* restart system service */ +#define RS_SHUTDOWN (RS_RQ_BASE + 3) /* alert about shutdown */ -# define SRV_CMD_ADDR m1_p1 /* command string */ -# define SRV_CMD_LEN m1_i1 /* length of command */ -# define SRV_PID m1_i1 /* pid of system service */ -# define SRV_PERIOD m1_i2 /* heartbeat period */ -# define SRV_DEV_MAJOR m1_i3 /* major device number */ +# define RS_CMD_ADDR m1_p1 /* command string */ +# define RS_CMD_LEN m1_i1 /* length of command */ +# define RS_PID m1_i1 /* pid of system service */ +# define RS_PERIOD m1_i2 /* heartbeat period */ +# define RS_DEV_MAJOR m1_i3 /* major device number */ + +/*===========================================================================* + * Messages for the Data Store Server * + *===========================================================================*/ + +#define DS_RQ_BASE 0x800 + +#define DS_PUBLISH (DS_RQ_BASE + 0) /* publish information */ +#define DS_RETRIEVE (DS_RQ_BASE + 1) /* retrieve information */ +#define DS_SUBSCRIBE (DS_RQ_BASE + 2) /* subscribe to information */ + +# define DS_KEY m2_i1 /* key for the information */ +# define DS_FLAGS m2_i2 /* flags provided by caller */ +# define DS_AUTH m2_p1 /* authorization of caller */ +# define DS_VAL_L1 m2_l1 /* first long data value */ +# define DS_VAL_L2 m2_l2 /* second long data value */ /*===========================================================================* * Miscellaneous messages used by TTY * diff --git a/include/minix/type.h b/include/minix/type.h index b5456ddd1..a3aa7de54 100755 --- a/include/minix/type.h +++ b/include/minix/type.h @@ -96,7 +96,8 @@ struct kinfo { phys_bytes kmem_size; phys_bytes bootdev_base; /* boot device from boot image (/dev/boot) */ phys_bytes bootdev_size; - phys_bytes bootdev_mem; + phys_bytes ramdev_base; /* boot device from boot image (/dev/boot) */ + phys_bytes ramdev_size; phys_bytes params_base; /* parameters passed by boot monitor */ phys_bytes params_size; int nr_procs; /* number of user processes */ diff --git a/include/unistd.h b/include/unistd.h index d89bdb476..629ab534c 100755 --- a/include/unistd.h +++ b/include/unistd.h @@ -41,6 +41,7 @@ #define SI_PROC_TAB 2 /* copy of entire process table */ #define SI_DMAP_TAB 3 /* get device <-> driver mappings */ #define SI_MEM_ALLOC 4 /* get memory allocation data */ +#define SI_DATA_STORE 5 /* get copy of data store */ /* NULL must be defined in according to POSIX Sec. 2.7.1. */ #define NULL ((void *)0)