minix/drivers/log/log.h
Thomas Veerman b9c217c1b7 all 330 changes
Change-Id: I1728e08622dbdec9bd1e37a9ba6afff80e8fb847
2013-10-31 17:04:59 +00:00

31 lines
632 B
C

/* Includes. */
#include <minix/drivers.h>
#include <minix/chardriver.h>
#include <minix/type.h>
#include <minix/const.h>
#include <minix/com.h>
#include <sys/types.h>
#include <minix/ipc.h>
/* Constants and types. */
#define LOG_SIZE (50*1024)
struct logdevice {
char log_buffer[LOG_SIZE];
int log_size, /* no. of bytes in log buffer */
log_read, /* read mark */
log_write; /* write mark */
endpoint_t log_source;
cdev_id_t log_id;
int log_iosize,
log_status;
cp_grant_id_t log_grant;
int log_selected, log_select_proc;
};
/* Function prototypes. */
void do_new_kmess(void);
void log_append(char *buf, int len);