⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 log.h

📁 minix3.1.1源代码
💻 H
字号:
/* Includes. */#include "../drivers.h"#include "../libdriver/driver.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) #define SUSPENDABLE 	      1struct logdevice {	char log_buffer[LOG_SIZE];	int	log_size,	/* no. of bytes in log buffer */		log_read,	/* read mark */		log_write;	/* write mark */#if SUSPENDABLE	int log_proc_nr,		log_source,		log_iosize,		log_revive_alerted,		log_status;	/* proc that is blocking on read */	vir_bytes log_user_vir;#endif	int	log_selected, log_select_proc,		log_select_alerted, log_select_ready_ops;};/* Function prototypes. */_PROTOTYPE( void kputc, (int c)						);_PROTOTYPE( int do_new_kmess, (message *m)				);_PROTOTYPE( int do_diagnostics, (message *m)				);_PROTOTYPE( void log_append, (char *buf, int len)				);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -