The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/include/ibm/partition.h

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 /* Description of entry in partition table.  */
    2 #ifndef _PARTITION_H
    3 #define _PARTITION_H
    4 
    5 struct part_entry {
    6   unsigned char bootind;        /* boot indicator 0/ACTIVE_FLAG  */
    7   unsigned char start_head;     /* head value for first sector   */
    8   unsigned char start_sec;      /* sector value + cyl bits for first sector */
    9   unsigned char start_cyl;      /* track value for first sector  */
   10   unsigned char sysind;         /* system indicator              */
   11   unsigned char last_head;      /* head value for last sector    */
   12   unsigned char last_sec;       /* sector value + cyl bits for last sector */
   13   unsigned char last_cyl;       /* track value for last sector   */
   14   unsigned long lowsec;         /* logical first sector          */
   15   unsigned long size;           /* size of partition in sectors  */
   16 };
   17 
   18 #define ACTIVE_FLAG     0x80    /* value for active in bootind field (hd0) */
   19 #define NR_PARTITIONS   4       /* number of entries in partition table */
   20 #define PART_TABLE_OFF  0x1BE   /* offset of partition table in boot sector */
   21 
   22 /* Partition types. */
   23 #define NO_PART         0x00    /* unused entry */
   24 #define MINIX_PART      0x81    /* Minix partition type */
   25 
   26 #endif /* _PARTITION_H */

Cache object: f9f471a2fa5b241ac30e1552401ad8f9


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.