ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

glue.h
Go to the documentation of this file.
00001 #ifndef __GLUE_HEADER
00002 #define __GLUE_HEADER
00003 
00004 #include <stddef.h>
00005 
00006 /* header for linux macros and definitions */
00007 
00015    #define container_of(ptr, type, member) (type *)( (char *)(ptr) - offsetof(type,member) )
00016 
00017 
00018 #define time_after(a,b)         \
00019           ((long)(b) - (long)(a) < 0))
00020 
00021 #define time_before(a,b)        time_after(b,a)
00022 
00023 #define in_interrupt() ((__readeflags() >> 9) & 1)
00024 
00025 typedef int (*acpi_table_handler) (ACPI_TABLE_HEADER *table);
00026 
00027 typedef int (*acpi_table_entry_handler) (ACPI_SUBTABLE_HEADER *header, const unsigned long end);
00028 
00029 #define down(mutex) ExAcquireFastMutex(mutex)
00030 #define up(mutex) ExReleaseFastMutex(mutex)
00031 
00032 #endif

Generated on Sat May 26 2012 04:26:00 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.