1: /*
   2:  * Copyright (c) 1982, 1986 Regents of the University of California.
   3:  * All rights reserved.  The Berkeley software License Agreement
   4:  * specifies the terms and conditions for redistribution.
   5:  *
   6:  *	@(#)reboot.h	7.1 (Berkeley) 6/4/86
   7:  */
   8: 
   9: /*
  10:  * Arguments to reboot system call.
  11:  * These are passed to boot program in r11,
  12:  * and on to init.
  13:  */
  14: #define RB_AUTOBOOT 0   /* flags for system auto-booting itself */
  15: 
  16: #define RB_ASKNAME  0x01    /* ask for file name to reboot from */
  17: #define RB_SINGLE   0x02    /* reboot to single user only */
  18: #define RB_NOSYNC   0x04    /* dont sync before reboot */
  19: #define RB_HALT     0x08    /* don't reboot, just halt */
  20: #define RB_INITNAME 0x10    /* name given for /etc/init */
  21: #define RB_DFLTROOT 0x20    /* use compiled-in rootdev */
  22: 
  23: #define RB_PANIC    0   /* reboot due to panic */
  24: #define RB_BOOT     1   /* reboot due to boot() */
  25: 
  26: /*
  27:  * Constants for converting boot-style device number to type,
  28:  * adaptor (uba, mba, etc), unit number and partition number.
  29:  * Type (== major device number) is in the low byte
  30:  * for backward compatibility.  Except for that of the "magic
  31:  * number", each mask applies to the shifted value.
  32:  */
  33: #define B_ADAPTORSHIFT  24
  34: #define B_ADAPTORMASK   0x0f
  35: #define B_UNITSHIFT 16
  36: #define B_UNITMASK  0xff
  37: #define B_PARTITIONSHIFT 8
  38: #define B_PARTITIONMASK 0xff
  39: #define B_TYPESHIFT 0
  40: #define B_TYPEMASK  0xff
  41: #define B_MAGICMASK 0xf0000000
  42: #define B_DEVMAGIC  0xa0000000

Defined macros

B_DEVMAGIC defined in line 42; used 2 times
B_MAGICMASK defined in line 41; used 1 times
B_TYPEMASK defined in line 40; used 2 times
B_TYPESHIFT defined in line 39; used 3 times
RB_ASKNAME defined in line 16; used 9 times
RB_AUTOBOOT defined in line 14; used 1 times
RB_BOOT defined in line 24; used 1 times
RB_DFLTROOT defined in line 21; used 1 times
RB_HALT defined in line 19; used 1 times
RB_INITNAME defined in line 20; never used
RB_NOSYNC defined in line 18; used 2 times
RB_PANIC defined in line 23; used 2 times
RB_SINGLE defined in line 17; used 4 times

Usage of this include

Last modified: 1986-06-05
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 984
Valid CSS Valid XHTML 1.0 Strict