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

📄 swap.h

📁 Minix3.11的源码。[MINIX 3是一个为高可靠性应用而设计的自由且简洁的类UNIX系统。]
💻 H
字号:
/*minix/swap.hDefines the super block of swap partitions and some useful constants.Created:	Aug 2, 1992 by Philip Homburg*/#ifndef _MINIX__SWAP_H#define _MINIX__SWAP_H/* Two possible layouts for a partition with swapspace: * *	Sector		Swap partition		FS+swap partition * *       0 - 1		bootblock		bootblock *	     2		swap header		FS header *	     3		blank			swap header *	 4 - m		swapspace		file system *	m+1 - n		-			swapspace */ #define SWAP_MAGIC0	0x9D#define SWAP_MAGIC1	0xC3#define SWAP_MAGIC2	0x01#define SWAP_MAGIC3	0x82typedef struct swap_hdr{	u8_t sh_magic[4];	u8_t sh_version;	u8_t sh_dummy[3];	u32_t sh_offset;	u32_t sh_swapsize;	i32_t sh_priority;} swap_hdr_t;#define SWAP_BOOTOFF	 1024#define SWAP_OFFSET	 2048#define OPTSWAP_BOOTOFF	(1024+512)#define SH_VERSION	    1#define SH_PRIORITY	    0#endif /* _MINIX__SWAP_H *//* * $PchId: swap.h,v 1.6 1996/04/10 20:25:48 philip Exp $ */

⌨️ 快捷键说明

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