ReactOS  0.4.14-dev-114-gc8cbd56
glue.h File Reference
#include <stddef.h>
Include dependency graph for glue.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define container_of(ptr, type, member)   (type *)( (char *)(ptr) - offsetof(type,member) )
 
#define time_after(a, b)   ((long)(b) - (long)(a) < 0))
 
#define time_before(a, b)   time_after(b,a)
 
#define in_interrupt()   ((__readeflags() >> 9) & 1)
 
#define down(mutex)   ExAcquireFastMutex(mutex)
 
#define up(mutex)   ExReleaseFastMutex(mutex)
 

Typedefs

typedef int(* acpi_table_handler) (ACPI_TABLE_HEADER *table)
 
typedef int(* acpi_table_entry_handler) (ACPI_SUBTABLE_HEADER *header, const unsigned long end)
 

Macro Definition Documentation

◆ container_of

#define container_of (   ptr,
  type,
  member 
)    (type *)( (char *)(ptr) - offsetof(type,member) )

container_of - cast a member of a structure out to the containing structure @ptr: the pointer to the member. @type: the type of the container struct this is embedded in. @member: the name of the member within the struct.

Definition at line 15 of file glue.h.

◆ down

#define down (   mutex)    ExAcquireFastMutex(mutex)

Definition at line 29 of file glue.h.

◆ in_interrupt

#define in_interrupt ( )    ((__readeflags() >> 9) & 1)

Definition at line 23 of file glue.h.

◆ time_after

#define time_after (   a,
  b 
)    ((long)(b) - (long)(a) < 0))

Definition at line 18 of file glue.h.

◆ time_before

#define time_before (   a,
  b 
)    time_after(b,a)

Definition at line 21 of file glue.h.

◆ up

Definition at line 30 of file glue.h.

Typedef Documentation

◆ acpi_table_entry_handler

typedef int(* acpi_table_entry_handler) (ACPI_SUBTABLE_HEADER *header, const unsigned long end)

Definition at line 27 of file glue.h.

◆ acpi_table_handler

typedef int(* acpi_table_handler) (ACPI_TABLE_HEADER *table)

Definition at line 25 of file glue.h.