src/kernel/const.h File Reference

#include <minix/config.h>
#include <minix/bitmap.h>
#include "config.h"
#include "debug.h"

Go to the source code of this file.

Defines

#define isokendpt(e, p)   isokendpt_d((e),(p),0)
#define okendpt(e, p)   isokendpt_d((e),(p),1)
#define _SRC_   0
#define _DST_   1
#define get_sys_bit(map, bit)   ( MAP_CHUNK(map.chunk,bit) & (1 << CHUNK_OFFSET(bit) )
#define get_sys_bits(map, bit)   ( MAP_CHUNK(map.chunk,bit) )
#define set_sys_bit(map, bit)   ( MAP_CHUNK(map.chunk,bit) |= (1 << CHUNK_OFFSET(bit) )
#define unset_sys_bit(map, bit)   ( MAP_CHUNK(map.chunk,bit) &= ~(1 << CHUNK_OFFSET(bit) )
#define reallock   do { int d; d = intr_disabled(); intr_disable(); locklevel++; if(d && locklevel == 1) { minix_panic("reallock while interrupts disabled first time", __LINE__); } } while(0)
#define realunlock   do { if(!intr_disabled()) { minix_panic("realunlock while interrupts enabled", __LINE__); } if(locklevel < 1) { minix_panic("realunlock while locklevel below 1", __LINE__); } locklevel--; if(locklevel == 0) { intr_enable(); } } while(0)
#define lock   reallock
#define unlock   realunlock
#define IDLE_STOP
#define INTS_ORIG   0
#define INTS_MINIX   1
#define END_OF_KMESS   0


Define Documentation

#define _DST_   1

Definition at line 17 of file const.h.

#define _SRC_   0

Definition at line 16 of file const.h.

#define END_OF_KMESS   0

Definition at line 49 of file const.h.

#define get_sys_bit ( map,
bit   )     ( MAP_CHUNK(map.chunk,bit) & (1 << CHUNK_OFFSET(bit) )

Definition at line 19 of file const.h.

#define get_sys_bits ( map,
bit   )     ( MAP_CHUNK(map.chunk,bit) )

Definition at line 21 of file const.h.

#define IDLE_STOP

Definition at line 41 of file const.h.

#define INTS_MINIX   1

Definition at line 46 of file const.h.

#define INTS_ORIG   0

Definition at line 45 of file const.h.

#define isokendpt ( e,
p   )     isokendpt_d((e),(p),0)

Definition at line 12 of file const.h.

#define lock   reallock

Definition at line 35 of file const.h.

#define okendpt ( e,
p   )     isokendpt_d((e),(p),1)

Definition at line 13 of file const.h.

#define reallock   do { int d; d = intr_disabled(); intr_disable(); locklevel++; if(d && locklevel == 1) { minix_panic("reallock while interrupts disabled first time", __LINE__); } } while(0)

Definition at line 28 of file const.h.

#define realunlock   do { if(!intr_disabled()) { minix_panic("realunlock while interrupts enabled", __LINE__); } if(locklevel < 1) { minix_panic("realunlock while locklevel below 1", __LINE__); } locklevel--; if(locklevel == 0) { intr_enable(); } } while(0)

Definition at line 30 of file const.h.

#define set_sys_bit ( map,
bit   )     ( MAP_CHUNK(map.chunk,bit) |= (1 << CHUNK_OFFSET(bit) )

Definition at line 23 of file const.h.

#define unlock   realunlock

Definition at line 36 of file const.h.

#define unset_sys_bit ( map,
bit   )     ( MAP_CHUNK(map.chunk,bit) &= ~(1 << CHUNK_OFFSET(bit) )

Definition at line 25 of file const.h.


Generated on Tue Mar 9 04:36:52 2010 for Minix by  doxygen 1.5.8