Back to index

glibc  2.9
Defines
reboot.h File Reference

Go to the source code of this file.

Defines

#define RB_AUTOBOOT   0 /* flags for system auto-booting itself */
#define RB_ASKNAME   0x01 /* ask for file name to reboot from */
#define RB_SINGLE   0x02 /* reboot to single user only */
#define RB_NOSYNC   0x04 /* don't sync before reboot */
#define RB_HALT   0x08 /* don't reboot, just halt */
#define RB_INITNAME   0x10 /* name given for /etc/init (unused) */
#define RB_DFLTROOT   0x20 /* use compiled-in rootdev */
#define RB_KDB   0x40 /* give control to kernel debugger */
#define RB_RDONLY   0x80 /* mount root fs read-only */
#define RB_DUMP   0x100 /* dump kernel memory before reboot */
#define RB_MINIROOT   0x200 /* mini-root present in memory at boot time */
#define B_ADAPTORSHIFT   24
#define B_ADAPTORMASK   0x0f
#define B_ADAPTOR(val)   (((val) >> B_ADAPTORSHIFT) & B_ADAPTORMASK)
#define B_CONTROLLERSHIFT   20
#define B_CONTROLLERMASK   0xf
#define B_CONTROLLER(val)   (((val)>>B_CONTROLLERSHIFT) & B_CONTROLLERMASK)
#define B_UNITSHIFT   16
#define B_UNITMASK   0xf
#define B_UNIT(val)   (((val) >> B_UNITSHIFT) & B_UNITMASK)
#define B_PARTITIONSHIFT   8
#define B_PARTITIONMASK   0xff
#define B_PARTITION(val)   (((val) >> B_PARTITIONSHIFT) & B_PARTITIONMASK)
#define B_TYPESHIFT   0
#define B_TYPEMASK   0xff
#define B_TYPE(val)   (((val) >> B_TYPESHIFT) & B_TYPEMASK)
#define B_MAGICMASK   ((u_long)0xf0000000)
#define B_DEVMAGIC   ((u_long)0xa0000000)
#define MAKEBOOTDEV(type, adaptor, controller, unit, partition)

Define Documentation

#define B_ADAPTOR (   val)    (((val) >> B_ADAPTORSHIFT) & B_ADAPTORMASK)

Definition at line 64 of file reboot.h.

#define B_ADAPTORMASK   0x0f

Definition at line 63 of file reboot.h.

#define B_ADAPTORSHIFT   24

Definition at line 62 of file reboot.h.

#define B_CONTROLLER (   val)    (((val)>>B_CONTROLLERSHIFT) & B_CONTROLLERMASK)

Definition at line 67 of file reboot.h.

#define B_CONTROLLERMASK   0xf

Definition at line 66 of file reboot.h.

#define B_CONTROLLERSHIFT   20

Definition at line 65 of file reboot.h.

#define B_DEVMAGIC   ((u_long)0xa0000000)

Definition at line 79 of file reboot.h.

#define B_MAGICMASK   ((u_long)0xf0000000)

Definition at line 78 of file reboot.h.

#define B_PARTITION (   val)    (((val) >> B_PARTITIONSHIFT) & B_PARTITIONMASK)

Definition at line 73 of file reboot.h.

#define B_PARTITIONMASK   0xff

Definition at line 72 of file reboot.h.

#define B_PARTITIONSHIFT   8

Definition at line 71 of file reboot.h.

#define B_TYPE (   val)    (((val) >> B_TYPESHIFT) & B_TYPEMASK)

Definition at line 76 of file reboot.h.

#define B_TYPEMASK   0xff

Definition at line 75 of file reboot.h.

#define B_TYPESHIFT   0

Definition at line 74 of file reboot.h.

#define B_UNIT (   val)    (((val) >> B_UNITSHIFT) & B_UNITMASK)

Definition at line 70 of file reboot.h.

#define B_UNITMASK   0xf

Definition at line 69 of file reboot.h.

#define B_UNITSHIFT   16

Definition at line 68 of file reboot.h.

#define MAKEBOOTDEV (   type,
  adaptor,
  controller,
  unit,
  partition 
)
Value:
(((type) << B_TYPESHIFT) | ((adaptor) << B_ADAPTORSHIFT) | \
       ((controller) << B_CONTROLLERSHIFT) | ((unit) << B_UNITSHIFT) | \
       ((partition) << B_PARTITIONSHIFT) | B_DEVMAGIC)

Definition at line 81 of file reboot.h.

#define RB_ASKNAME   0x01 /* ask for file name to reboot from */

Definition at line 39 of file reboot.h.

#define RB_AUTOBOOT   0 /* flags for system auto-booting itself */

Definition at line 37 of file reboot.h.

#define RB_DFLTROOT   0x20 /* use compiled-in rootdev */

Definition at line 44 of file reboot.h.

#define RB_DUMP   0x100 /* dump kernel memory before reboot */

Definition at line 47 of file reboot.h.

#define RB_HALT   0x08 /* don't reboot, just halt */

Definition at line 42 of file reboot.h.

#define RB_INITNAME   0x10 /* name given for /etc/init (unused) */

Definition at line 43 of file reboot.h.

#define RB_KDB   0x40 /* give control to kernel debugger */

Definition at line 45 of file reboot.h.

#define RB_MINIROOT   0x200 /* mini-root present in memory at boot time */

Definition at line 48 of file reboot.h.

#define RB_NOSYNC   0x04 /* don't sync before reboot */

Definition at line 41 of file reboot.h.

#define RB_RDONLY   0x80 /* mount root fs read-only */

Definition at line 46 of file reboot.h.

#define RB_SINGLE   0x02 /* reboot to single user only */

Definition at line 40 of file reboot.h.