partition.h

来自「一个简单的操作系统minix的核心代码」· C头文件 代码 · 共 32 行

H
32
字号
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
				include/ibm/partition.h	 	 
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

04100	/* Description of entry in partition table.  */
04101	#ifndef _PARTITION_H
04102	#define _PARTITION_H
04103	
04104	struct part_entry {
04105	  unsigned char bootind;        /* boot indicator 0/ACTIVE_FLAG  */
04106	  unsigned char start_head;     /* head value for first sector   */
04107	  unsigned char start_sec;      /* sector value + cyl bits for first sector */
04108	  unsigned char start_cyl;      /* track value for first sector  */
04109	  unsigned char sysind;         /* system indicator              */
04110	  unsigned char last_head;      /* head value for last sector    */
04111	  unsigned char last_sec;       /* sector value + cyl bits for last sector */
04112	  unsigned char last_cyl;       /* track value for last sector   */
04113	  unsigned long lowsec;         /* logical first sector          */
04114	  unsigned long size;           /* size of partition in sectors  */
04115	};
04116	
04117	#define ACTIVE_FLAG     0x80    /* value for active in bootind field (hd0) */
04118	#define NR_PARTITIONS   4       /* number of entries in partition table */
04119	#define PART_TABLE_OFF  0x1BE   /* offset of partition table in boot sector */
04120	
04121	/* Partition types. */
04122	#define MINIX_PART      0x81    /* Minix partition type */
04123	#define NO_PART         0x00    /* unused entry */
04124	#define OLD_MINIX_PART  0x80    /* created before 1.4b, obsolete */
04125	#define EXT_PART        0x05    /* extended partition */
04126	
04127	#endif /* _PARTITION_H */

⌨️ 快捷键说明

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