ReactOS  r76032
linux.h File Reference
#include <ntddk.h>
Include dependency graph for linux.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  page
 
struct  __kernel_fd_set
 
struct  __kernel_fsid_t
 
struct  ustat
 
struct  rwlock_t
 
struct  spinlock_t
 
struct  atomic_t
 
struct  list_head
 
struct  __wait_queue
 
struct  __wait_queue_head
 
struct  kmem_cache_s
 
struct  iovec
 
struct  timer_list
 
struct  timeval
 
struct  poll_table_struct
 
struct  fd_set_bits
 
struct  read_descriptor_t
 
struct  pollfd
 

Macros

#define NULL   (void*)0
 
#define BITS_PER_LONG   32
 
#define __NFDBITS   (8 * sizeof(unsigned long))
 
#define __FD_SETSIZE   1024
 
#define __FDSET_LONGS   (__FD_SETSIZE/__NFDBITS)
 
#define __FDELT(d)   ((d) / __NFDBITS)
 
#define __FDMASK(d)   (1UL << ((d) % __NFDBITS))
 
#define __FD_SET(fd, fdsetp)
 
#define __FD_CLR(fd, fdsetp)
 
#define __FD_ISSET(fd, fdsetp)
 
#define __FD_ZERO(fdsetp)
 
#define _SIZE_T
 
#define _SSIZE_T
 
#define _PTRDIFF_T
 
#define _TIME_T
 
#define _CLOCK_T
 
#define _CADDR_T
 
#define __BIT_TYPES_DEFINED__
 
#define __LITTLE_ENDIAN   1234
 
#define __LITTLE_ENDIAN_BITFIELD
 
#define ___swab16(x)
 
#define ___swab24(x)
 
#define ___swab32(x)
 
#define ___swab64(x)
 
#define ___constant_swab16(x)
 
#define ___constant_swab24(x)
 
#define ___constant_swab32(x)
 
#define ___constant_swab64(x)
 
#define __arch__swab16(x)   ({ __u16 __tmp = (x) ; ___swab16(__tmp); })
 
#define __arch__swab24(x)   ({ __u32 __tmp = (x) ; ___swab24(__tmp); })
 
#define __arch__swab32(x)   ({ __u32 __tmp = (x) ; ___swab32(__tmp); })
 
#define __arch__swab64(x)   ({ __u64 __tmp = (x) ; ___swab64(__tmp); })
 
#define __arch__swab16p(x)   __arch__swab16(*(x))
 
#define __arch__swab24p(x)   __arch__swab24(*(x))
 
#define __arch__swab32p(x)   __arch__swab32(*(x))
 
#define __arch__swab64p(x)   __arch__swab64(*(x))
 
#define __arch__swab16s(x)   do { *(x) = __arch__swab16p((x)); } while (0)
 
#define __arch__swab24s(x)   do { *(x) = __arch__swab24p((x)); } while (0)
 
#define __arch__swab32s(x)   do { *(x) = __arch__swab32p((x)); } while (0)
 
#define __arch__swab64s(x)   do { *(x) = __arch__swab64p((x)); } while (0)
 
#define __swab16(x)   __fswab16(x)
 
#define __swab24(x)   __fswab24(x)
 
#define __swab32(x)   __fswab32(x)
 
#define __swab64(x)   __fswab64(x)
 
#define __constant_htonl(x)   ___constant_swab32((x))
 
#define __constant_ntohl(x)   ___constant_swab32((x))
 
#define __constant_htons(x)   ___constant_swab16((x))
 
#define __constant_ntohs(x)   ___constant_swab16((x))
 
#define __constant_cpu_to_le64(x)   ((__u64)(x))
 
#define __constant_le64_to_cpu(x)   ((__u64)(x))
 
#define __constant_cpu_to_le32(x)   ((__u32)(x))
 
#define __constant_le32_to_cpu(x)   ((__u32)(x))
 
#define __constant_cpu_to_le24(x)   ((__u32)(x))
 
#define __constant_le24_to_cpu(x)   ((__u32)(x))
 
#define __constant_cpu_to_le16(x)   ((__u16)(x))
 
#define __constant_le16_to_cpu(x)   ((__u16)(x))
 
#define __constant_cpu_to_be64(x)   ___constant_swab64((x))
 
#define __constant_be64_to_cpu(x)   ___constant_swab64((x))
 
#define __constant_cpu_to_be32(x)   ___constant_swab32((x))
 
#define __constant_be32_to_cpu(x)   ___constant_swab32((x))
 
#define __constant_cpu_to_be24(x)   ___constant_swab24((x))
 
#define __constant_be24_to_cpu(x)   ___constant_swab24((x))
 
#define __constant_cpu_to_be16(x)   ___constant_swab16((x))
 
#define __constant_be16_to_cpu(x)   ___constant_swab16((x))
 
#define __cpu_to_le64(x)   ((__u64)(x))
 
#define __le64_to_cpu(x)   ((__u64)(x))
 
#define __cpu_to_le32(x)   ((__u32)(x))
 
#define __le32_to_cpu(x)   ((__u32)(x))
 
#define __cpu_to_le24(x)   ((__u32)(x))
 
#define __le24_to_cpu(x)   ((__u32)(x))
 
#define __cpu_to_le16(x)   ((__u16)(x))
 
#define __le16_to_cpu(x)   ((__u16)(x))
 
#define __cpu_to_be64(x)   __swab64((x))
 
#define __be64_to_cpu(x)   __swab64((x))
 
#define __cpu_to_be32(x)   __swab32((x))
 
#define __be32_to_cpu(x)   __swab32((x))
 
#define __cpu_to_be24(x)   __swab24((x))
 
#define __be24_to_cpu(x)   __swab24((x))
 
#define __cpu_to_be16(x)   __swab16((x))
 
#define __be16_to_cpu(x)   __swab16((x))
 
#define __cpu_to_le64p(x)   (*(__u64*)(x))
 
#define __le64_to_cpup(x)   (*(__u64*)(x))
 
#define __cpu_to_le32p(x)   (*(__u32*)(x))
 
#define __le32_to_cpup(x)   (*(__u32*)(x))
 
#define __cpu_to_le24p(x)   (*(__u32*)(x))
 
#define __le24_to_cpup(x)   (*(__u32*)(x))
 
#define __cpu_to_le16p(x)   (*(__u16*)(x))
 
#define __le16_to_cpup(x)   (*(__u16*)(x))
 
#define __cpu_to_be64p(x)   __swab64p((x))
 
#define __be64_to_cpup(x)   __swab64p((x))
 
#define __cpu_to_be32p(x)   __swab32p((x))
 
#define __be32_to_cpup(x)   __swab32p((x))
 
#define __cpu_to_be24p(x)   __swab24p((x))
 
#define __be24_to_cpup(x)   __swab24p((x))
 
#define __cpu_to_be16p(x)   __swab16p((x))
 
#define __be16_to_cpup(x)   __swab16p((x))
 
#define __cpu_to_le64s(x)   do {} while (0)
 
#define __le64_to_cpus(x)   do {} while (0)
 
#define __cpu_to_le32s(x)   do {} while (0)
 
#define __le32_to_cpus(x)   do {} while (0)
 
#define __cpu_to_le24s(x)   do {} while (0)
 
#define __le24_to_cpus(x)   do {} while (0)
 
#define __cpu_to_le16s(x)   do {} while (0)
 
#define __le16_to_cpus(x)   do {} while (0)
 
#define __cpu_to_be64s(x)   __swab64s((x))
 
#define __be64_to_cpus(x)   __swab64s((x))
 
#define __cpu_to_be32s(x)   __swab32s((x))
 
#define __be32_to_cpus(x)   __swab32s((x))
 
#define __cpu_to_be24s(x)   __swab24s((x))
 
#define __be24_to_cpus(x)   __swab24s((x))
 
#define __cpu_to_be16s(x)   __swab16s((x))
 
#define __be16_to_cpus(x)   __swab16s((x))
 
#define ____cacheline_aligned
 
#define LOCK   ""
 
#define ATOMIC_INIT(i)   { (i) }
 
#define atomic_read(v)   ((v)->counter)
 
#define atomic_set(v, i)   (((v)->counter) = (i))
 
#define atomic_clear_mask(mask, addr)
 
#define atomic_set_mask(mask, addr)
 
#define smp_mb__before_atomic_dec()
 
#define smp_mb__after_atomic_dec()
 
#define smp_mb__before_atomic_inc()
 
#define smp_mb__after_atomic_inc()
 
#define LIST_HEAD_INIT(name)   { &(name), &(name) }
 
#define LIST_HEAD(name)   struct list_head name = LIST_HEAD_INIT(name)
 
#define INIT_LIST_HEAD(ptr)
 
#define list_entry(ptr, type, member)
 
#define list_for_each(pos, head)
 
#define list_for_each_prev(pos, head)
 
#define list_for_each_safe(pos, n, head)
 
#define list_for_each_entry(pos, head, member)
 
#define WNOHANG   0x00000001
 
#define WUNTRACED   0x00000002
 
#define __WNOTHREAD   0x20000000 /* Don't wait on children of other threads in this group */
 
#define __WALL   0x40000000 /* Wait on all children, regardless of type */
 
#define __WCLONE   0x80000000 /* Wait only on non-SIGCHLD children */
 
#define WAITQUEUE_DEBUG   0
 
#define WQ_FLAG_EXCLUSIVE   0x01
 
#define USE_RW_WAIT_QUEUE_SPINLOCK   0
 
#define wq_lock_t   spinlock_t
 
#define WAITQUEUE_RW_LOCK_UNLOCKED   SPIN_LOCK_UNLOCKED
 
#define wq_read_lock   spin_lock
 
#define wq_read_lock_irqsave   spin_lock_irqsave
 
#define wq_read_unlock   spin_unlock
 
#define wq_read_unlock_irqrestore   spin_unlock_irqrestore
 
#define wq_write_lock_irq   spin_lock_irq
 
#define wq_write_lock_irqsave   spin_lock_irqsave
 
#define wq_write_unlock_irqrestore   spin_unlock_irqrestore
 
#define wq_write_unlock   spin_unlock
 
#define WQ_BUG()
 
#define CHECK_MAGIC(x)
 
#define CHECK_MAGIC_WQHEAD(x)
 
#define WQ_CHECK_LIST_HEAD(list)
 
#define WQ_NOTE_WAKER(tsk)
 
#define __WAITQUEUE_DEBUG_INIT(name)
 
#define __WAITQUEUE_HEAD_DEBUG_INIT(name)
 
#define __WAITQUEUE_INITIALIZER(name, tsk)
 
#define DECLARE_WAITQUEUE(name, tsk)
 
#define __WAIT_QUEUE_HEAD_INITIALIZER(name)
 
#define DECLARE_WAIT_QUEUE_HEAD(name)
 
#define SLAB_NOFS   GFP_NOFS
 
#define SLAB_NOIO   GFP_NOIO
 
#define SLAB_NOHIGHIO   GFP_NOHIGHIO
 
#define SLAB_ATOMIC   GFP_ATOMIC
 
#define SLAB_USER   GFP_USER
 
#define SLAB_KERNEL   GFP_KERNEL
 
#define SLAB_NFS   GFP_NFS
 
#define SLAB_DMA   GFP_DMA
 
#define SLAB_LEVEL_MASK   (__GFP_WAIT|__GFP_HIGH|__GFP_IO|__GFP_HIGHIO|__GFP_FS)
 
#define SLAB_NO_GROW   0x00001000UL /* don't grow a cache */
 
#define SLAB_DEBUG_FREE   0x00000100UL /* Perform (expensive) checks on free */
 
#define SLAB_DEBUG_INITIAL   0x00000200UL /* Call constructor (as verifier) */
 
#define SLAB_RED_ZONE   0x00000400UL /* Red zone objs in a cache */
 
#define SLAB_POISON   0x00000800UL /* Poison objects */
 
#define SLAB_NO_REAP   0x00001000UL /* never reap from the cache */
 
#define SLAB_HWCACHE_ALIGN   0x00002000UL /* align objs on a h/w cache lines */
 
#define SLAB_CACHE_DMA   0x00004000UL /* use GFP_DMA memory */
 
#define SLAB_MUST_HWCACHE_ALIGN   0x00008000UL /* force alignment */
 
#define SLAB_CTOR_CONSTRUCTOR   0x001UL /* if not set, then deconstructor */
 
#define SLAB_CTOR_ATOMIC   0x002UL /* tell constructor it can't sleep */
 
#define SLAB_CTOR_VERIFY   0x004UL /* tell constructor it's a verify call */
 
#define UIO_FASTIOV   8
 
#define UIO_MAXIOV   1024
 
#define FDS_BITPERLONG   (8*sizeof(long))
 
#define FDS_LONGS(nr)   (((nr)+FDS_BITPERLONG-1)/FDS_BITPERLONG)
 
#define FDS_BYTES(nr)   (FDS_LONGS(nr)*sizeof(long))
 
#define POLLIN   0x0001
 
#define POLLPRI   0x0002
 
#define POLLOUT   0x0004
 
#define POLLERR   0x0008
 
#define POLLHUP   0x0010
 
#define POLLNVAL   0x0020
 
#define POLLRDNORM   0x0040
 
#define POLLRDBAND   0x0080
 
#define POLLWRNORM   0x0100
 
#define POLLWRBAND   0x0200
 
#define POLLMSG   0x0400
 

Typedefs

typedef struct page mem_map_t
 
typedef unsigned short umode_t
 
typedef __signed__ char __s8
 
typedef unsigned char __u8
 
typedef __signed__ short __s16
 
typedef unsigned short __u16
 
typedef __signed__ int __s32
 
typedef unsigned int __u32
 
typedef signed char s8
 
typedef unsigned char u8
 
typedef signed short s16
 
typedef unsigned short u16
 
typedef signed int s32
 
typedef unsigned int u32
 
typedef signed long long s64
 
typedef unsigned long long u64
 
typedef u32 dma_addr_t
 
typedef u64 dma64_addr_t
 
typedef void(* __kernel_sighandler_t )(int)
 
typedef int __kernel_key_t
 
typedef unsigned short __kernel_dev_t
 
typedef unsigned long __kernel_ino_t
 
typedef unsigned short __kernel_mode_t
 
typedef unsigned short __kernel_nlink_t
 
typedef long __kernel_off_t
 
typedef int __kernel_pid_t
 
typedef unsigned short __kernel_ipc_pid_t
 
typedef unsigned short __kernel_uid_t
 
typedef unsigned short __kernel_gid_t
 
typedef unsigned int __kernel_size_t
 
typedef int __kernel_ssize_t
 
typedef int __kernel_ptrdiff_t
 
typedef long __kernel_time_t
 
typedef long __kernel_suseconds_t
 
typedef long __kernel_clock_t
 
typedef int __kernel_daddr_t
 
typedef char__kernel_caddr_t
 
typedef unsigned short __kernel_uid16_t
 
typedef unsigned short __kernel_gid16_t
 
typedef unsigned int __kernel_uid32_t
 
typedef unsigned int __kernel_gid32_t
 
typedef unsigned short __kernel_old_uid_t
 
typedef unsigned short __kernel_old_gid_t
 
typedef __kernel_fd_set fd_set
 
typedef __kernel_dev_t dev_t
 
typedef __kernel_ino_t ino_t
 
typedef __kernel_mode_t mode_t
 
typedef __kernel_nlink_t nlink_t
 
typedef __kernel_off_t off_t
 
typedef __kernel_pid_t pid_t
 
typedef __kernel_daddr_t daddr_t
 
typedef __kernel_key_t key_t
 
typedef __kernel_suseconds_t suseconds_t
 
typedef __kernel_uid_t uid_t
 
typedef __kernel_gid_t gid_t
 
typedef __kernel_size_t size_t
 
typedef __kernel_ssize_t ssize_t
 
typedef __kernel_ptrdiff_t ptrdiff_t
 
typedef __kernel_time_t time_t
 
typedef __kernel_clock_t clock_t
 
typedef __kernel_caddr_t caddr_t
 
typedef unsigned char u_char
 
typedef unsigned short u_short
 
typedef unsigned int u_int
 
typedef unsigned long u_long
 
typedef unsigned char unchar
 
typedef unsigned short ushort
 
typedef unsigned int uint
 
typedef unsigned long ulong
 
typedef __u8 u_int8_t
 
typedef __s8 int8_t
 
typedef __u16 u_int16_t
 
typedef __s16 int16_t
 
typedef __u32 u_int32_t
 
typedef __s32 int32_t
 
typedef __u8 uint8_t
 
typedef __u16 uint16_t
 
typedef __u32 uint32_t
 
typedef struct __wait_queue wait_queue_t
 
typedef struct __wait_queue_head wait_queue_head_t
 
typedef struct kmem_cache_s kmem_cache_t
 
typedef struct poll_table_struct poll_table
 

Functions

static __inline__ __const__ __u16 __fswab16 (__u16 x)
 
static __inline__ __u16 __swab16p (__u16 *x)
 
static __inline__ void __swab16s (__u16 *addr)
 
static __inline__ __const__ __u32 __fswab24 (__u32 x)
 
static __inline__ __u32 __swab24p (__u32 *x)
 
static __inline__ void __swab24s (__u32 *addr)
 
static __inline__ __const__ __u32 __fswab32 (__u32 x)
 
static __inline__ __u32 __swab32p (__u32 *x)
 
static __inline__ void __swab32s (__u32 *addr)
 
unsigned long int ntohl (unsigned long int)
 
unsigned long int htonl (unsigned long int)
 
unsigned short int ntohs (unsigned short int)
 
unsigned short int htons (unsigned short int)
 
static __inline__ void atomic_add (int i, atomic_t *v)
 
static __inline__ void atomic_sub (int i, atomic_t *v)
 
static __inline__ int atomic_sub_and_test (int i, atomic_t *v)
 
static __inline__ void atomic_inc (atomic_t *v)
 
static __inline__ void atomic_dec (atomic_t *v)
 
static __inline__ int atomic_dec_and_test (atomic_t *v)
 
static __inline__ int atomic_inc_and_test (atomic_t *v)
 
static __inline__ int atomic_add_negative (int i, atomic_t *v)
 
static void __list_add (struct list_head *new, struct list_head *prev, struct list_head *next)
 
static void list_add (struct list_head *new, struct list_head *head)
 
static void list_add_tail (struct list_head *new, struct list_head *head)
 
static void __list_del (struct list_head *prev, struct list_head *next)
 
static void list_del (struct list_head *entry)
 
static void list_del_init (struct list_head *entry)
 
static void list_move (struct list_head *list, struct list_head *head)
 
static void list_move_tail (struct list_head *list, struct list_head *head)
 
static int list_empty (struct list_head *head)
 
static void __list_splice (struct list_head *list, struct list_head *head)
 
static void list_splice (struct list_head *list, struct list_head *head)
 
static void list_splice_init (struct list_head *list, struct list_head *head)
 
static void init_waitqueue_head (wait_queue_head_t *q)
 
static void init_waitqueue_entry (wait_queue_t *q, struct task_struct *p)
 
static int waitqueue_active (wait_queue_head_t *q)
 
static void __add_wait_queue (wait_queue_head_t *head, wait_queue_t *new)
 
static void __add_wait_queue_tail (wait_queue_head_t *head, wait_queue_t *new)
 
static void __remove_wait_queue (wait_queue_head_t *head, wait_queue_t *old)
 
void kmem_cache_init (void)
 
void kmem_cache_sizes_init (void)
 
kmem_cache_tkmem_find_general_cachep (size_t, int gfpflags)
 
kmem_cache_tkmem_cache_create (const char *, size_t, size_t, unsigned long, void(*)(void *, kmem_cache_t *, unsigned long), void(*)(void *, kmem_cache_t *, unsigned long))
 
int kmem_cache_destroy (kmem_cache_t *)
 
int kmem_cache_shrink (kmem_cache_t *)
 
voidkmem_cache_alloc (kmem_cache_t *, int)
 
void kmem_cache_free (kmem_cache_t *, void *)
 
unsigned int kmem_cache_size (kmem_cache_t *)
 
voidkmalloc (size_t, int)
 
void kfree (const void *)
 
void __pollwait (struct file *filp, wait_queue_head_t *wait_address, poll_table *p)
 
static void poll_wait (struct file *filp, wait_queue_head_t *wait_address, poll_table *p)
 
static void poll_initwait (poll_table *pt)
 
void poll_freewait (poll_table *pt)
 
static int get_fd_set (unsigned long nr, void *ufdset, unsigned long *fdset)
 
static void set_fd_set (unsigned long nr, void *ufdset, unsigned long *fdset)
 
static void zero_fd_set (unsigned long nr, unsigned long *fdset)
 
int do_select (int n, fd_set_bits *fds, long *timeout)
 

Variables

kmem_cache_tvm_area_cachep
 
kmem_cache_tmm_cachep
 
kmem_cache_tnames_cachep
 
kmem_cache_tfiles_cachep
 
kmem_cache_tfilp_cachep
 
kmem_cache_tdquot_cachep
 
kmem_cache_tbh_cachep
 
kmem_cache_tfs_cachep
 
kmem_cache_tsigact_cachep
 

Macro Definition Documentation

#define ____cacheline_aligned

Definition at line 829 of file linux.h.

#define ___constant_swab16 (   x)
Value:
((__u16)( \
(((__u16)(x) & (__u16)0x00ffU) << 8) | \
(((__u16)(x) & (__u16)0xff00U) >> 8) ))
unsigned short __u16
Definition: compat.h:89
unsigned short __u16
Definition: linux.h:38
INT x
Definition: msvc.h:62

Definition at line 393 of file linux.h.

#define ___constant_swab24 (   x)
Value:
((__u32)( \
(((__u32)(x) & (__u32)0x000000ffU) << 16) | \
(((__u32)(x) & (__u32)0x0000ff00U) | \
(((__u32)(x) & (__u32)0x00ff0000U) >> 16) ))
unsigned int __u32
Definition: linux.h:41
unsigned int __u32
Definition: compat.h:90
INT x
Definition: msvc.h:62

Definition at line 397 of file linux.h.

#define ___constant_swab32 (   x)
Value:
((__u32)( \
(((__u32)(x) & (__u32)0x000000ffUL) << 24) | \
(((__u32)(x) & (__u32)0x0000ff00UL) << 8) | \
(((__u32)(x) & (__u32)0x00ff0000UL) >> 8) | \
(((__u32)(x) & (__u32)0xff000000UL) >> 24) ))
unsigned int __u32
Definition: linux.h:41
unsigned int __u32
Definition: compat.h:90
#define UL
Definition: tui.h:70
INT x
Definition: msvc.h:62

Definition at line 402 of file linux.h.

#define ___constant_swab64 (   x)
Value:
((__u64)( \
(__u64)(((__u64)(x) & (__u64)0x00000000000000ffULL) << 56) | \
(__u64)(((__u64)(x) & (__u64)0x000000000000ff00ULL) << 40) | \
(__u64)(((__u64)(x) & (__u64)0x0000000000ff0000ULL) << 24) | \
(__u64)(((__u64)(x) & (__u64)0x00000000ff000000ULL) << 8) | \
(__u64)(((__u64)(x) & (__u64)0x000000ff00000000ULL) >> 8) | \
(__u64)(((__u64)(x) & (__u64)0x0000ff0000000000ULL) >> 24) | \
(__u64)(((__u64)(x) & (__u64)0x00ff000000000000ULL) >> 40) | \
(__u64)(((__u64)(x) & (__u64)0xff00000000000000ULL) >> 56) ))
unsigned __int64 __u64
Definition: types.h:27
INT x
Definition: msvc.h:62

Definition at line 408 of file linux.h.

#define ___swab16 (   x)
Value:
({ \
__u16 __x = (x); \
((__u16)( \
(((__u16)(__x) & (__u16)0x00ffU) << 8) | \
(((__u16)(__x) & (__u16)0xff00U) >> 8) )); \
})
unsigned short __u16
Definition: compat.h:89
unsigned short __u16
Definition: linux.h:38
INT x
Definition: msvc.h:62

Definition at line 352 of file linux.h.

#define ___swab24 (   x)
Value:
({ \
__u32 __x = (x); \
((__u32)( \
((__x & (__u32)0x000000ffUL) << 16) | \
(__x & (__u32)0x0000ff00UL) | \
((__x & (__u32)0x00ff0000UL) >> 16) )); \
})
unsigned int __u32
Definition: linux.h:41
unsigned int __u32
Definition: compat.h:90
#define UL
Definition: tui.h:70
INT x
Definition: msvc.h:62

Definition at line 360 of file linux.h.

#define ___swab32 (   x)
Value:
({ \
__u32 __x = (x); \
((__u32)( \
(((__u32)(__x) & (__u32)0x000000ffUL) << 24) | \
(((__u32)(__x) & (__u32)0x0000ff00UL) << 8) | \
(((__u32)(__x) & (__u32)0x00ff0000UL) >> 8) | \
(((__u32)(__x) & (__u32)0xff000000UL) >> 24) )); \
})
unsigned int __u32
Definition: linux.h:41
unsigned int __u32
Definition: compat.h:90
INT x
Definition: msvc.h:62

Definition at line 369 of file linux.h.

#define ___swab64 (   x)
Value:
({ \
__u64 __x = (x); \
((__u64)( \
(__u64)(((__u64)(__x) & (__u64)0x00000000000000ffULL) << 56) | \
(__u64)(((__u64)(__x) & (__u64)0x000000000000ff00ULL) << 40) | \
(__u64)(((__u64)(__x) & (__u64)0x0000000000ff0000ULL) << 24) | \
(__u64)(((__u64)(__x) & (__u64)0x00000000ff000000ULL) << 8) | \
(__u64)(((__u64)(__x) & (__u64)0x000000ff00000000ULL) >> 8) | \
(__u64)(((__u64)(__x) & (__u64)0x0000ff0000000000ULL) >> 24) | \
(__u64)(((__u64)(__x) & (__u64)0x00ff000000000000ULL) >> 40) | \
(__u64)(((__u64)(__x) & (__u64)0xff00000000000000ULL) >> 56) )); \
})
unsigned __int64 __u64
Definition: types.h:27
INT x
Definition: msvc.h:62

Definition at line 379 of file linux.h.

#define __arch__swab16 (   x)    ({ __u16 __tmp = (x) ; ___swab16(__tmp); })

Definition at line 423 of file linux.h.

Referenced by __fswab16().

#define __arch__swab16p (   x)    __arch__swab16(*(x))

Definition at line 436 of file linux.h.

Referenced by __swab16p().

#define __arch__swab16s (   x)    do { *(x) = __arch__swab16p((x)); } while (0)

Definition at line 449 of file linux.h.

Referenced by __swab16s().

#define __arch__swab24 (   x)    ({ __u32 __tmp = (x) ; ___swab24(__tmp); })

Definition at line 426 of file linux.h.

Referenced by __fswab24().

#define __arch__swab24p (   x)    __arch__swab24(*(x))

Definition at line 439 of file linux.h.

Referenced by __swab24p().

#define __arch__swab24s (   x)    do { *(x) = __arch__swab24p((x)); } while (0)

Definition at line 452 of file linux.h.

Referenced by __swab24s().

#define __arch__swab32 (   x)    ({ __u32 __tmp = (x) ; ___swab32(__tmp); })

Definition at line 429 of file linux.h.

Referenced by __fswab32().

#define __arch__swab32p (   x)    __arch__swab32(*(x))

Definition at line 442 of file linux.h.

Referenced by __swab32p().

#define __arch__swab32s (   x)    do { *(x) = __arch__swab32p((x)); } while (0)

Definition at line 455 of file linux.h.

Referenced by __swab32s().

#define __arch__swab64 (   x)    ({ __u64 __tmp = (x) ; ___swab64(__tmp); })

Definition at line 432 of file linux.h.

#define __arch__swab64p (   x)    __arch__swab64(*(x))

Definition at line 445 of file linux.h.

#define __arch__swab64s (   x)    do { *(x) = __arch__swab64p((x)); } while (0)

Definition at line 458 of file linux.h.

#define __be16_to_cpu (   x)    __swab16((x))

Definition at line 784 of file linux.h.

#define __be16_to_cpup (   x)    __swab16p((x))

Definition at line 800 of file linux.h.

#define __be16_to_cpus (   x)    __swab16s((x))

Definition at line 816 of file linux.h.

#define __be24_to_cpu (   x)    __swab24((x))

Definition at line 782 of file linux.h.

#define __be24_to_cpup (   x)    __swab24p((x))

Definition at line 798 of file linux.h.

#define __be24_to_cpus (   x)    __swab24s((x))

Definition at line 814 of file linux.h.

#define __be32_to_cpu (   x)    __swab32((x))

Definition at line 780 of file linux.h.

#define __be32_to_cpup (   x)    __swab32p((x))

Definition at line 796 of file linux.h.

#define __be32_to_cpus (   x)    __swab32s((x))

Definition at line 812 of file linux.h.

#define __be64_to_cpu (   x)    __swab64((x))

Definition at line 778 of file linux.h.

#define __be64_to_cpup (   x)    __swab64p((x))

Definition at line 794 of file linux.h.

#define __be64_to_cpus (   x)    __swab64s((x))

Definition at line 810 of file linux.h.

#define __BIT_TYPES_DEFINED__

Definition at line 278 of file linux.h.

#define __constant_be16_to_cpu (   x)    ___constant_swab16((x))

Definition at line 768 of file linux.h.

#define __constant_be24_to_cpu (   x)    ___constant_swab24((x))

Definition at line 766 of file linux.h.

#define __constant_be32_to_cpu (   x)    ___constant_swab32((x))

Definition at line 764 of file linux.h.

#define __constant_be64_to_cpu (   x)    ___constant_swab64((x))

Definition at line 762 of file linux.h.

#define __constant_cpu_to_be16 (   x)    ___constant_swab16((x))

Definition at line 767 of file linux.h.

#define __constant_cpu_to_be24 (   x)    ___constant_swab24((x))

Definition at line 765 of file linux.h.

#define __constant_cpu_to_be32 (   x)    ___constant_swab32((x))

Definition at line 763 of file linux.h.

#define __constant_cpu_to_be64 (   x)    ___constant_swab64((x))

Definition at line 761 of file linux.h.

#define __constant_cpu_to_le16 (   x)    ((__u16)(x))

Definition at line 759 of file linux.h.

#define __constant_cpu_to_le24 (   x)    ((__u32)(x))

Definition at line 757 of file linux.h.

#define __constant_cpu_to_le32 (   x)    ((__u32)(x))

Definition at line 755 of file linux.h.

#define __constant_cpu_to_le64 (   x)    ((__u64)(x))

Definition at line 753 of file linux.h.

#define __constant_htonl (   x)    ___constant_swab32((x))

Definition at line 749 of file linux.h.

#define __constant_htons (   x)    ___constant_swab16((x))

Definition at line 751 of file linux.h.

#define __constant_le16_to_cpu (   x)    ((__u16)(x))

Definition at line 760 of file linux.h.

#define __constant_le24_to_cpu (   x)    ((__u32)(x))

Definition at line 758 of file linux.h.

#define __constant_le32_to_cpu (   x)    ((__u32)(x))

Definition at line 756 of file linux.h.

#define __constant_le64_to_cpu (   x)    ((__u64)(x))

Definition at line 754 of file linux.h.

#define __constant_ntohl (   x)    ___constant_swab32((x))

Definition at line 750 of file linux.h.

#define __constant_ntohs (   x)    ___constant_swab16((x))

Definition at line 752 of file linux.h.

#define __cpu_to_be16 (   x)    __swab16((x))

Definition at line 783 of file linux.h.

#define __cpu_to_be16p (   x)    __swab16p((x))

Definition at line 799 of file linux.h.

#define __cpu_to_be16s (   x)    __swab16s((x))

Definition at line 815 of file linux.h.

#define __cpu_to_be24 (   x)    __swab24((x))

Definition at line 781 of file linux.h.

#define __cpu_to_be24p (   x)    __swab24p((x))

Definition at line 797 of file linux.h.

#define __cpu_to_be24s (   x)    __swab24s((x))

Definition at line 813 of file linux.h.

#define __cpu_to_be32 (   x)    __swab32((x))

Definition at line 779 of file linux.h.

#define __cpu_to_be32p (   x)    __swab32p((x))

Definition at line 795 of file linux.h.

#define __cpu_to_be32s (   x)    __swab32s((x))

Definition at line 811 of file linux.h.

#define __cpu_to_be64 (   x)    __swab64((x))

Definition at line 777 of file linux.h.

#define __cpu_to_be64p (   x)    __swab64p((x))

Definition at line 793 of file linux.h.

#define __cpu_to_be64s (   x)    __swab64s((x))

Definition at line 809 of file linux.h.

#define __cpu_to_le16 (   x)    ((__u16)(x))

Definition at line 775 of file linux.h.

#define __cpu_to_le16p (   x)    (*(__u16*)(x))

Definition at line 791 of file linux.h.

#define __cpu_to_le16s (   x)    do {} while (0)

Definition at line 807 of file linux.h.

#define __cpu_to_le24 (   x)    ((__u32)(x))

Definition at line 773 of file linux.h.

#define __cpu_to_le24p (   x)    (*(__u32*)(x))

Definition at line 789 of file linux.h.

#define __cpu_to_le24s (   x)    do {} while (0)

Definition at line 805 of file linux.h.

#define __cpu_to_le32 (   x)    ((__u32)(x))

Definition at line 771 of file linux.h.

#define __cpu_to_le32p (   x)    (*(__u32*)(x))

Definition at line 787 of file linux.h.

#define __cpu_to_le32s (   x)    do {} while (0)

Definition at line 803 of file linux.h.

#define __cpu_to_le64 (   x)    ((__u64)(x))

Definition at line 769 of file linux.h.

#define __cpu_to_le64p (   x)    (*(__u64*)(x))

Definition at line 785 of file linux.h.

#define __cpu_to_le64s (   x)    do {} while (0)

Definition at line 801 of file linux.h.

#define __FD_CLR (   fd,
  fdsetp 
)
Value:
__asm__ __volatile__("btrl %1,%0": \
"=m" (*(__kernel_fd_set *) (fdsetp)):"r" ((int) (fd)))
__asm__("\t.globl GetPhys\n""GetPhys:\t\n""mflr 0\n\t""stwu 0,-16(1)\n\t""mfmsr 5\n\t""andi. 6,5,0xffef\n\t""mtmsr 6\n\t""isync\n\t""sync\n\t""lwz 3,0(3)\n\t""mtmsr 5\n\t""isync\n\t""sync\n\t""lwz 0,0(1)\n\t""addi 1,1,16\n\t""mtlr 0\n\t""blr")
static HANDLE fd
Definition: io.c:55

Definition at line 168 of file linux.h.

#define __FD_ISSET (   fd,
  fdsetp 
)
Value:
(__extension__ ({ \
unsigned char __result; \
__asm__ __volatile__("btl %1,%2 ; setb %0" \
:"=q" (__result) :"r" ((int) (fd)), \
"m" (*(__kernel_fd_set *) (fdsetp))); \
__result; }))
__asm__("\t.globl GetPhys\n""GetPhys:\t\n""mflr 0\n\t""stwu 0,-16(1)\n\t""mfmsr 5\n\t""andi. 6,5,0xffef\n\t""mtmsr 6\n\t""isync\n\t""sync\n\t""lwz 3,0(3)\n\t""mtmsr 5\n\t""isync\n\t""sync\n\t""lwz 0,0(1)\n\t""addi 1,1,16\n\t""mtlr 0\n\t""blr")
static HANDLE fd
Definition: io.c:55

Definition at line 173 of file linux.h.

#define __FD_SET (   fd,
  fdsetp 
)
Value:
__asm__ __volatile__("btsl %1,%0": \
"=m" (*(__kernel_fd_set *) (fdsetp)):"r" ((int) (fd)))
__asm__("\t.globl GetPhys\n""GetPhys:\t\n""mflr 0\n\t""stwu 0,-16(1)\n\t""mfmsr 5\n\t""andi. 6,5,0xffef\n\t""mtmsr 6\n\t""isync\n\t""sync\n\t""lwz 3,0(3)\n\t""mtmsr 5\n\t""isync\n\t""sync\n\t""lwz 0,0(1)\n\t""addi 1,1,16\n\t""mtlr 0\n\t""blr")
static HANDLE fd
Definition: io.c:55

Definition at line 163 of file linux.h.

#define __FD_SETSIZE   1024

Definition at line 95 of file linux.h.

#define __FD_ZERO (   fdsetp)
Value:
do { \
int __d0, __d1; \
__asm__ __volatile__("cld ; rep ; stosl" \
:"=m" (*(__kernel_fd_set *) (fdsetp)), \
"=&c" (__d0), "=&D" (__d1) \
:"a" (0), "1" (__FDSET_LONGS), \
"2" ((__kernel_fd_set *) (fdsetp)) : "memory"); \
} while (0)
__asm__("\t.globl GetPhys\n""GetPhys:\t\n""mflr 0\n\t""stwu 0,-16(1)\n\t""mfmsr 5\n\t""andi. 6,5,0xffef\n\t""mtmsr 6\n\t""isync\n\t""sync\n\t""lwz 3,0(3)\n\t""mtmsr 5\n\t""isync\n\t""sync\n\t""lwz 0,0(1)\n\t""addi 1,1,16\n\t""mtlr 0\n\t""blr")
#define __FDSET_LONGS
Definition: linux.h:98
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
Definition: typeof.h:29

Definition at line 181 of file linux.h.

#define __FDELT (   d)    ((d) / __NFDBITS)

Definition at line 101 of file linux.h.

#define __FDMASK (   d)    (1UL << ((d) % __NFDBITS))

Definition at line 104 of file linux.h.

#define __FDSET_LONGS   (__FD_SETSIZE/__NFDBITS)

Definition at line 98 of file linux.h.

#define __le16_to_cpu (   x)    ((__u16)(x))

Definition at line 776 of file linux.h.

#define __le16_to_cpup (   x)    (*(__u16*)(x))

Definition at line 792 of file linux.h.

#define __le16_to_cpus (   x)    do {} while (0)

Definition at line 808 of file linux.h.

#define __le24_to_cpu (   x)    ((__u32)(x))

Definition at line 774 of file linux.h.

#define __le24_to_cpup (   x)    (*(__u32*)(x))

Definition at line 790 of file linux.h.

#define __le24_to_cpus (   x)    do {} while (0)

Definition at line 806 of file linux.h.

#define __le32_to_cpu (   x)    ((__u32)(x))

Definition at line 772 of file linux.h.

#define __le32_to_cpup (   x)    (*(__u32*)(x))

Definition at line 788 of file linux.h.

#define __le32_to_cpus (   x)    do {} while (0)

Definition at line 804 of file linux.h.

#define __le64_to_cpu (   x)    ((__u64)(x))

Definition at line 770 of file linux.h.

#define __le64_to_cpup (   x)    (*(__u64*)(x))

Definition at line 786 of file linux.h.

#define __le64_to_cpus (   x)    do {} while (0)

Definition at line 802 of file linux.h.

#define __LITTLE_ENDIAN   1234

Definition at line 327 of file linux.h.

#define __LITTLE_ENDIAN_BITFIELD

Definition at line 330 of file linux.h.

#define __NFDBITS   (8 * sizeof(unsigned long))

Definition at line 92 of file linux.h.

#define __swab16 (   x)    __fswab16(x)

Definition at line 483 of file linux.h.

#define __swab24 (   x)    __fswab24(x)

Definition at line 484 of file linux.h.

#define __swab32 (   x)    __fswab32(x)

Definition at line 485 of file linux.h.

#define __swab64 (   x)    __fswab64(x)

Definition at line 486 of file linux.h.

#define __WAIT_QUEUE_HEAD_INITIALIZER (   name)

Definition at line 1492 of file linux.h.

#define __WAITQUEUE_DEBUG_INIT (   name)

Definition at line 1475 of file linux.h.

#define __WAITQUEUE_HEAD_DEBUG_INIT (   name)

Definition at line 1476 of file linux.h.

#define __WAITQUEUE_INITIALIZER (   name,
  tsk 
)

Definition at line 1479 of file linux.h.

#define __WALL   0x40000000 /* Wait on all children, regardless of type */

Definition at line 1337 of file linux.h.

#define __WCLONE   0x80000000 /* Wait only on non-SIGCHLD children */

Definition at line 1338 of file linux.h.

#define __WNOTHREAD   0x20000000 /* Don't wait on children of other threads in this group */

Definition at line 1336 of file linux.h.

#define _CADDR_T

Definition at line 261 of file linux.h.

#define _CLOCK_T

Definition at line 256 of file linux.h.

#define _PTRDIFF_T

Definition at line 246 of file linux.h.

#define _SIZE_T

Definition at line 236 of file linux.h.

#define _SSIZE_T

Definition at line 241 of file linux.h.

#define _TIME_T

Definition at line 251 of file linux.h.

#define atomic_clear_mask (   mask,
  addr 
)

Definition at line 1054 of file linux.h.

#define ATOMIC_INIT (   i)    { (i) }

Definition at line 866 of file linux.h.

#define atomic_read (   v)    ((v)->counter)

atomic_read - read atomic variable : pointer of type atomic_t

Atomically reads the value of . Note that the guaranteed useful range of an atomic_t is only 24 bits.

Definition at line 875 of file linux.h.

#define atomic_set (   v,
  i 
)    (((v)->counter) = (i))

atomic_set - set atomic variable : pointer of type atomic_t : required value

Atomically sets the value of to . Note that the guaranteed useful range of an atomic_t is only 24 bits.

Definition at line 885 of file linux.h.

#define atomic_set_mask (   mask,
  addr 
)

Definition at line 1060 of file linux.h.

#define BITS_PER_LONG   32

Definition at line 63 of file linux.h.

#define CHECK_MAGIC (   x)

Definition at line 1461 of file linux.h.

Referenced by __add_wait_queue(), __add_wait_queue_tail(), and __remove_wait_queue().

#define CHECK_MAGIC_WQHEAD (   x)

Definition at line 1462 of file linux.h.

Referenced by __add_wait_queue(), __add_wait_queue_tail(), and waitqueue_active().

#define DECLARE_WAIT_QUEUE_HEAD (   name)

Definition at line 1500 of file linux.h.

#define DECLARE_WAITQUEUE (   name,
  tsk 
)

Definition at line 1487 of file linux.h.

#define FDS_BITPERLONG   (8*sizeof(long))

Definition at line 1789 of file linux.h.

#define FDS_BYTES (   nr)    (FDS_LONGS(nr)*sizeof(long))

Definition at line 1791 of file linux.h.

Referenced by get_fd_set(), set_fd_set(), and zero_fd_set().

#define FDS_LONGS (   nr)    (((nr)+FDS_BITPERLONG-1)/FDS_BITPERLONG)

Definition at line 1790 of file linux.h.

#define INIT_LIST_HEAD (   ptr)
Value:
do { \
(ptr)->next = (ptr); (ptr)->prev = (ptr); \
} while (0)
static PVOID ptr
Definition: dispmode.c:30
static unsigned __int64 next
Definition: rand_nt.c:6

Definition at line 1091 of file linux.h.

Referenced by init_waitqueue_head(), list_del_init(), and list_splice_init().

#define list_entry (   ptr,
  type,
  member 
)

list_entry - get the struct for this entry : the &struct list_head pointer. : the type of the struct this is embedded in. : the name of the list_struct within the struct.

Definition at line 1271 of file linux.h.

#define list_for_each (   pos,
  head 
)

list_for_each - iterate over a list : the &struct list_head to use as a loop counter. : the head for your list.

Definition at line 1281 of file linux.h.

#define list_for_each_entry (   pos,
  head,
  member 
)

list_for_each_entry - iterate over list of given type : the type * to use as a loop counter. : the head for your list. : the name of the list_struct within the struct.

Definition at line 1316 of file linux.h.

#define list_for_each_prev (   pos,
  head 
)

list_for_each_prev - iterate over a list backwards : the &struct list_head to use as a loop counter. : the head for your list.

Definition at line 1292 of file linux.h.

#define list_for_each_safe (   pos,
  n,
  head 
)

list_for_each_safe - iterate over a list safe against removal of list entry : the &struct list_head to use as a loop counter.
: another &struct list_head to use as temporary storage : the head for your list.

Definition at line 1304 of file linux.h.

#define LIST_HEAD (   name)    struct list_head name = LIST_HEAD_INIT(name)

Definition at line 1088 of file linux.h.

#define LIST_HEAD_INIT (   name)    { &(name), &(name) }

Definition at line 1086 of file linux.h.

#define NULL   (void*)0

Definition at line 6 of file linux.h.

Referenced by poll_initwait().

#define POLLERR   0x0008

Definition at line 1856 of file linux.h.

Referenced by clnt_dg_call().

#define POLLHUP   0x0010

Definition at line 1857 of file linux.h.

Referenced by test_WSAPoll().

#define POLLMSG   0x0400

Definition at line 1865 of file linux.h.

#define POLLNVAL   0x0020

Definition at line 1858 of file linux.h.

Referenced by rpc_broadcast_exp(), svc_getreq_poll(), and test_WSAPoll().

#define POLLOUT   0x0004
#define POLLPRI   0x0002
#define POLLRDBAND   0x0080

Definition at line 1862 of file linux.h.

#define POLLRDNORM   0x0040

Definition at line 1861 of file linux.h.

#define POLLWRBAND   0x0200

Definition at line 1864 of file linux.h.

#define POLLWRNORM   0x0100

Definition at line 1863 of file linux.h.

Referenced by test_WSAPoll().

#define SLAB_ATOMIC   GFP_ATOMIC

Definition at line 1625 of file linux.h.

#define SLAB_CACHE_DMA   0x00004000UL /* use GFP_DMA memory */

Definition at line 1644 of file linux.h.

#define SLAB_CTOR_ATOMIC   0x002UL /* tell constructor it can't sleep */

Definition at line 1649 of file linux.h.

#define SLAB_CTOR_CONSTRUCTOR   0x001UL /* if not set, then deconstructor */

Definition at line 1648 of file linux.h.

#define SLAB_CTOR_VERIFY   0x004UL /* tell constructor it's a verify call */

Definition at line 1650 of file linux.h.

#define SLAB_DEBUG_FREE   0x00000100UL /* Perform (expensive) checks on free */

Definition at line 1638 of file linux.h.

#define SLAB_DEBUG_INITIAL   0x00000200UL /* Call constructor (as verifier) */

Definition at line 1639 of file linux.h.

#define SLAB_DMA   GFP_DMA

Definition at line 1629 of file linux.h.

#define SLAB_HWCACHE_ALIGN   0x00002000UL /* align objs on a h/w cache lines */

Definition at line 1643 of file linux.h.

#define SLAB_KERNEL   GFP_KERNEL

Definition at line 1627 of file linux.h.

Definition at line 1631 of file linux.h.

#define SLAB_MUST_HWCACHE_ALIGN   0x00008000UL /* force alignment */

Definition at line 1645 of file linux.h.

#define SLAB_NFS   GFP_NFS

Definition at line 1628 of file linux.h.

#define SLAB_NO_GROW   0x00001000UL /* don't grow a cache */

Definition at line 1632 of file linux.h.

#define SLAB_NO_REAP   0x00001000UL /* never reap from the cache */

Definition at line 1642 of file linux.h.

#define SLAB_NOFS   GFP_NOFS

Definition at line 1622 of file linux.h.

#define SLAB_NOHIGHIO   GFP_NOHIGHIO

Definition at line 1624 of file linux.h.

#define SLAB_NOIO   GFP_NOIO

Definition at line 1623 of file linux.h.

#define SLAB_POISON   0x00000800UL /* Poison objects */

Definition at line 1641 of file linux.h.

#define SLAB_RED_ZONE   0x00000400UL /* Red zone objs in a cache */

Definition at line 1640 of file linux.h.

#define SLAB_USER   GFP_USER

Definition at line 1626 of file linux.h.

#define smp_mb__after_atomic_dec ( )

Definition at line 1068 of file linux.h.

#define smp_mb__after_atomic_inc ( )

Definition at line 1070 of file linux.h.

#define smp_mb__before_atomic_dec ( )

Definition at line 1067 of file linux.h.

#define smp_mb__before_atomic_inc ( )

Definition at line 1069 of file linux.h.

#define UIO_FASTIOV   8

Definition at line 1709 of file linux.h.

#define UIO_MAXIOV   1024

Definition at line 1710 of file linux.h.

#define USE_RW_WAIT_QUEUE_SPINLOCK   0

Definition at line 1378 of file linux.h.

#define WAITQUEUE_DEBUG   0

Definition at line 1357 of file linux.h.

#define WAITQUEUE_RW_LOCK_UNLOCKED   SPIN_LOCK_UNLOCKED

Definition at line 1394 of file linux.h.

Referenced by init_waitqueue_head().

#define WNOHANG   0x00000001

Definition at line 1333 of file linux.h.

Referenced by Server().

#define WQ_CHECK_LIST_HEAD (   list)

Definition at line 1463 of file linux.h.

#define WQ_FLAG_EXCLUSIVE   0x01

Definition at line 1362 of file linux.h.

#define wq_lock_t   spinlock_t

Definition at line 1393 of file linux.h.

#define WQ_NOTE_WAKER (   tsk)

Definition at line 1464 of file linux.h.

#define wq_read_lock   spin_lock

Definition at line 1396 of file linux.h.

#define wq_read_lock_irqsave   spin_lock_irqsave

Definition at line 1397 of file linux.h.

#define wq_read_unlock   spin_unlock

Definition at line 1398 of file linux.h.

#define wq_read_unlock_irqrestore   spin_unlock_irqrestore

Definition at line 1399 of file linux.h.

#define wq_write_lock_irq   spin_lock_irq

Definition at line 1400 of file linux.h.

#define wq_write_lock_irqsave   spin_lock_irqsave

Definition at line 1401 of file linux.h.

#define wq_write_unlock   spin_unlock

Definition at line 1403 of file linux.h.

#define wq_write_unlock_irqrestore   spin_unlock_irqrestore

Definition at line 1402 of file linux.h.

#define WUNTRACED   0x00000002

Definition at line 1334 of file linux.h.

Typedef Documentation

Definition at line 139 of file linux.h.

Definition at line 137 of file linux.h.

Definition at line 138 of file linux.h.

typedef unsigned short __kernel_dev_t

Definition at line 123 of file linux.h.

typedef unsigned short __kernel_gid16_t

Definition at line 141 of file linux.h.

typedef unsigned int __kernel_gid32_t

Definition at line 143 of file linux.h.

typedef unsigned short __kernel_gid_t

Definition at line 131 of file linux.h.

typedef unsigned long __kernel_ino_t

Definition at line 124 of file linux.h.

typedef unsigned short __kernel_ipc_pid_t

Definition at line 129 of file linux.h.

Definition at line 114 of file linux.h.

typedef unsigned short __kernel_mode_t

Definition at line 125 of file linux.h.

typedef unsigned short __kernel_nlink_t

Definition at line 126 of file linux.h.

Definition at line 127 of file linux.h.

typedef unsigned short __kernel_old_gid_t

Definition at line 146 of file linux.h.

typedef unsigned short __kernel_old_uid_t

Definition at line 145 of file linux.h.

Definition at line 128 of file linux.h.

Definition at line 134 of file linux.h.

typedef void(* __kernel_sighandler_t)(int)

Definition at line 111 of file linux.h.

typedef unsigned int __kernel_size_t

Definition at line 132 of file linux.h.

Definition at line 133 of file linux.h.

Definition at line 136 of file linux.h.

Definition at line 135 of file linux.h.

typedef unsigned short __kernel_uid16_t

Definition at line 140 of file linux.h.

typedef unsigned int __kernel_uid32_t

Definition at line 142 of file linux.h.

typedef unsigned short __kernel_uid_t

Definition at line 130 of file linux.h.

typedef __signed__ short __s16

Definition at line 37 of file linux.h.

typedef __signed__ int __s32

Definition at line 40 of file linux.h.

typedef __signed__ char __s8

Definition at line 34 of file linux.h.

typedef unsigned short __u16

Definition at line 38 of file linux.h.

typedef unsigned int __u32

Definition at line 41 of file linux.h.

typedef unsigned char __u8

Definition at line 35 of file linux.h.

Definition at line 262 of file linux.h.

Definition at line 257 of file linux.h.

Definition at line 203 of file linux.h.

Definition at line 197 of file linux.h.

typedef u64 dma64_addr_t

Definition at line 72 of file linux.h.

typedef u32 dma_addr_t

Definition at line 70 of file linux.h.

Definition at line 196 of file linux.h.

Definition at line 224 of file linux.h.

Definition at line 198 of file linux.h.

typedef __s16 int16_t

Definition at line 283 of file linux.h.

typedef __s32 int32_t

Definition at line 285 of file linux.h.

typedef __s8 int8_t

Definition at line 281 of file linux.h.

Definition at line 204 of file linux.h.

Definition at line 1614 of file linux.h.

Definition at line 199 of file linux.h.

Definition at line 200 of file linux.h.

Definition at line 201 of file linux.h.

Definition at line 202 of file linux.h.

Definition at line 247 of file linux.h.

typedef signed short s16

Definition at line 54 of file linux.h.

typedef signed int s32

Definition at line 57 of file linux.h.

typedef signed long long s64

Definition at line 60 of file linux.h.

typedef signed char s8

Definition at line 51 of file linux.h.

static size_t

Definition at line 237 of file linux.h.

Definition at line 242 of file linux.h.

Definition at line 205 of file linux.h.

Definition at line 252 of file linux.h.

typedef unsigned short u16

Definition at line 55 of file linux.h.

typedef unsigned int u32

Definition at line 58 of file linux.h.

typedef unsigned long long u64

Definition at line 61 of file linux.h.

typedef unsigned char u8

Definition at line 52 of file linux.h.

typedef unsigned char u_char

Definition at line 266 of file linux.h.

typedef unsigned int u_int

Definition at line 268 of file linux.h.

typedef __u16 u_int16_t

Definition at line 282 of file linux.h.

typedef __u32 u_int32_t

Definition at line 284 of file linux.h.

typedef __u8 u_int8_t

Definition at line 280 of file linux.h.

typedef unsigned long u_long

Definition at line 269 of file linux.h.

typedef unsigned short u_short

Definition at line 267 of file linux.h.

Definition at line 223 of file linux.h.

typedef unsigned int uint

Definition at line 274 of file linux.h.

typedef __u16 uint16_t

Definition at line 290 of file linux.h.

typedef __u32 uint32_t

Definition at line 291 of file linux.h.

typedef __u8 uint8_t

Definition at line 289 of file linux.h.

typedef unsigned long ulong

Definition at line 275 of file linux.h.

typedef unsigned short umode_t

Definition at line 27 of file linux.h.

typedef unsigned char unchar

Definition at line 272 of file linux.h.

typedef unsigned short ushort

Definition at line 273 of file linux.h.

Definition at line 1414 of file linux.h.

Definition at line 1370 of file linux.h.

Function Documentation

static void __add_wait_queue ( wait_queue_head_t head,
wait_queue_t new 
)
inlinestatic

Definition at line 1549 of file linux.h.

1550 {
1551 #if 0
1552 #if WAITQUEUE_DEBUG
1553  if (!head || !new)
1554  WQ_BUG();
1555  CHECK_MAGIC_WQHEAD(head);
1556  CHECK_MAGIC(new->__magic);
1557  if (!head->task_list.next || !head->task_list.prev)
1558  WQ_BUG();
1559 #endif
1560  list_add(&new->task_list, &head->task_list);
1561 #endif
1562 }
struct list_head task_list
Definition: module.h:490
#define WQ_BUG()
Definition: linux.h:1460
static void list_add(struct list_head *new, struct list_head *head)
Definition: linux.h:1121
#define CHECK_MAGIC(x)
Definition: linux.h:1461
#define CHECK_MAGIC_WQHEAD(x)
Definition: linux.h:1462
static void __add_wait_queue_tail ( wait_queue_head_t head,
wait_queue_t new 
)
inlinestatic

Definition at line 1567 of file linux.h.

1569 {
1570 #if 0
1571 #if WAITQUEUE_DEBUG
1572  if (!head || !new)
1573  WQ_BUG();
1574  CHECK_MAGIC_WQHEAD(head);
1575  CHECK_MAGIC(new->__magic);
1576  if (!head->task_list.next || !head->task_list.prev)
1577  WQ_BUG();
1578 #endif
1579  list_add_tail(&new->task_list, &head->task_list);
1580 #endif
1581 }
struct list_head task_list
Definition: module.h:490
#define WQ_BUG()
Definition: linux.h:1460
static void list_add_tail(struct list_head *new, struct list_head *head)
Definition: linux.h:1136
#define CHECK_MAGIC(x)
Definition: linux.h:1461
#define CHECK_MAGIC_WQHEAD(x)
Definition: linux.h:1462
static __inline__ __const__ __u16 __fswab16 ( __u16  x)
static

Definition at line 490 of file linux.h.

491 {
492  return __arch__swab16(x);
493 }
#define __arch__swab16(x)
Definition: linux.h:423
INT x
Definition: msvc.h:62
static __inline__ __const__ __u32 __fswab24 ( __u32  x)
static

Definition at line 503 of file linux.h.

504 {
505  return __arch__swab24(x);
506 }
#define __arch__swab24(x)
Definition: linux.h:426
INT x
Definition: msvc.h:62
static __inline__ __const__ __u32 __fswab32 ( __u32  x)
static

Definition at line 516 of file linux.h.

517 {
518  return __arch__swab32(x);
519 }
#define __arch__swab32(x)
Definition: linux.h:429
INT x
Definition: msvc.h:62
static void __list_add ( struct list_head new,
struct list_head prev,
struct list_head next 
)
inlinestatic

Definition at line 1101 of file linux.h.

Referenced by list_add(), and list_add_tail().

1104 {
1105 #if 0
1106  next->prev = new;
1107  new->next = next;
1108  new->prev = prev;
1109  prev->next = new;
1110 #endif
1111 }
struct list_head * next
Definition: list.h:16
struct list_head * prev
Definition: list.h:16
static unsigned __int64 next
Definition: rand_nt.c:6
static void __list_del ( struct list_head prev,
struct list_head next 
)
inlinestatic

Definition at line 1150 of file linux.h.

Referenced by list_del(), list_del_init(), list_move(), and list_move_tail().

1151 {
1152  next->prev = prev;
1153  prev->next = next;
1154 }
struct list_head * next
Definition: list.h:16
struct list_head * prev
Definition: list.h:16
static unsigned __int64 next
Definition: rand_nt.c:6
static void __list_splice ( struct list_head list,
struct list_head head 
)
inlinestatic

Definition at line 1218 of file linux.h.

Referenced by list_splice(), and list_splice_init().

1220 {
1221 #if 0
1222  struct list_head *first = list->next;
1223  struct list_head *last = list->prev;
1224  struct list_head *at = head->next;
1225 
1226  first->prev = head;
1227  head->next = first;
1228 
1229  last->next = at;
1230  at->prev = last;
1231 #endif
1232 }
struct outqueuenode * head
Definition: adnsresfilter.c:66
POINT last
Definition: font.c:45
const GLint * first
Definition: glext.h:5794
struct list_head * next
Definition: list.h:16
struct list_head * prev
Definition: list.h:16
Definition: list.h:15
void __pollwait ( struct file filp,
wait_queue_head_t wait_address,
poll_table p 
)

Referenced by poll_wait().

static void __remove_wait_queue ( wait_queue_head_t head,
wait_queue_t old 
)
inlinestatic

Definition at line 1583 of file linux.h.

1585 {
1586 #if 0
1587 #if WAITQUEUE_DEBUG
1588  if (!old)
1589  WQ_BUG();
1590  CHECK_MAGIC(old->__magic);
1591 #endif
1592  list_del(&old->task_list);
1593 #endif
1594 }
#define WQ_BUG()
Definition: linux.h:1460
static void list_del(struct list_head *entry)
Definition: linux.h:1161
#define CHECK_MAGIC(x)
Definition: linux.h:1461
static __inline__ __u16 __swab16p ( __u16 x)
static

Definition at line 494 of file linux.h.

495 {
496  return __arch__swab16p(x);
497 }
#define __arch__swab16p(x)
Definition: linux.h:436
INT x
Definition: msvc.h:62
static __inline__ void __swab16s ( __u16 addr)
static

Definition at line 498 of file linux.h.

499 {
501 }
GLenum const GLvoid * addr
Definition: glext.h:9621
#define __arch__swab16s(x)
Definition: linux.h:449
static __inline__ __u32 __swab24p ( __u32 x)
static

Definition at line 507 of file linux.h.

508 {
509  return __arch__swab24p(x);
510 }
#define __arch__swab24p(x)
Definition: linux.h:439
INT x
Definition: msvc.h:62
static __inline__ void __swab24s ( __u32 addr)
static

Definition at line 511 of file linux.h.

512 {
514 }
#define __arch__swab24s(x)
Definition: linux.h:452
GLenum const GLvoid * addr
Definition: glext.h:9621
static __inline__ __u32 __swab32p ( __u32 x)
static

Definition at line 520 of file linux.h.

521 {
522  return __arch__swab32p(x);
523 }
#define __arch__swab32p(x)
Definition: linux.h:442
INT x
Definition: msvc.h:62
static __inline__ void __swab32s ( __u32 addr)
static

Definition at line 524 of file linux.h.

525 {
527 }
#define __arch__swab32s(x)
Definition: linux.h:455
GLenum const GLvoid * addr
Definition: glext.h:9621
static __inline__ void atomic_add ( int  i,
atomic_t v 
)
static

atomic_add - add integer to atomic variable : integer value to add : pointer of type atomic_t

Atomically adds to . Note that the guaranteed useful range of an atomic_t is only 24 bits.

Definition at line 895 of file linux.h.

896 {
897 #if 0
898  __asm__ __volatile__(
899  LOCK "addl %1,%0"
900  :"=m" (v->counter)
901  :"ir" (i), "m" (v->counter));
902 #endif
903 }
#define LOCK
Definition: linux.h:856
__asm__("\t.globl GetPhys\n""GetPhys:\t\n""mflr 0\n\t""stwu 0,-16(1)\n\t""mfmsr 5\n\t""andi. 6,5,0xffef\n\t""mtmsr 6\n\t""isync\n\t""sync\n\t""lwz 3,0(3)\n\t""mtmsr 5\n\t""isync\n\t""sync\n\t""lwz 0,0(1)\n\t""addi 1,1,16\n\t""mtlr 0\n\t""blr")
GLenum GLclampf GLint i
Definition: glfuncs.h:14
volatile LONG counter
Definition: atomic.h:11
static __inline__ int atomic_add_negative ( int  i,
atomic_t v 
)
static

atomic_add_negative - add and test if negative : pointer of type atomic_t : integer value to add

Atomically adds to and returns true if the result is negative, or false when result is greater than or equal to zero. Note that the guaranteed useful range of an atomic_t is only 24 bits.

Definition at line 1038 of file linux.h.

1039 {
1040 #if 0
1041  unsigned char c;
1042 
1043  __asm__ __volatile__(
1044  LOCK "addl %2,%0; sets %1"
1045  :"=m" (v->counter), "=qm" (c)
1046  :"ir" (i), "m" (v->counter) : "memory");
1047  return c;
1048 #else
1049  return 0;
1050 #endif
1051 }
#define LOCK
Definition: linux.h:856
__asm__("\t.globl GetPhys\n""GetPhys:\t\n""mflr 0\n\t""stwu 0,-16(1)\n\t""mfmsr 5\n\t""andi. 6,5,0xffef\n\t""mtmsr 6\n\t""isync\n\t""sync\n\t""lwz 3,0(3)\n\t""mtmsr 5\n\t""isync\n\t""sync\n\t""lwz 0,0(1)\n\t""addi 1,1,16\n\t""mtlr 0\n\t""blr")
GLenum GLclampf GLint i
Definition: glfuncs.h:14
volatile LONG counter
Definition: atomic.h:11
#define c
Definition: ke_i.h:80
static __inline__ void atomic_dec ( atomic_t v)
static

atomic_dec - decrement atomic variable : pointer of type atomic_t

Atomically decrements by 1. Note that the guaranteed useful range of an atomic_t is only 24 bits.

Definition at line 970 of file linux.h.

971 {
972 #if 0
973  __asm__ __volatile__(
974  LOCK "decl %0"
975  :"=m" (v->counter)
976  :"m" (v->counter));
977 #endif
978 }
#define LOCK
Definition: linux.h:856
__asm__("\t.globl GetPhys\n""GetPhys:\t\n""mflr 0\n\t""stwu 0,-16(1)\n\t""mfmsr 5\n\t""andi. 6,5,0xffef\n\t""mtmsr 6\n\t""isync\n\t""sync\n\t""lwz 3,0(3)\n\t""mtmsr 5\n\t""isync\n\t""sync\n\t""lwz 0,0(1)\n\t""addi 1,1,16\n\t""mtlr 0\n\t""blr")
volatile LONG counter
Definition: atomic.h:11
static __inline__ int atomic_dec_and_test ( atomic_t v)
static

atomic_dec_and_test - decrement and test : pointer of type atomic_t

Atomically decrements by 1 and returns true if the result is 0, or false for all other cases. Note that the guaranteed useful range of an atomic_t is only 24 bits.

Definition at line 989 of file linux.h.

990 {
991 #if 0
992  unsigned char c;
993 
994  __asm__ __volatile__(
995  LOCK "decl %0; sete %1"
996  :"=m" (v->counter), "=qm" (c)
997  :"m" (v->counter) : "memory");
998  return c != 0;
999 #else
1000  return 1;
1001 #endif
1002 }
#define LOCK
Definition: linux.h:856
__asm__("\t.globl GetPhys\n""GetPhys:\t\n""mflr 0\n\t""stwu 0,-16(1)\n\t""mfmsr 5\n\t""andi. 6,5,0xffef\n\t""mtmsr 6\n\t""isync\n\t""sync\n\t""lwz 3,0(3)\n\t""mtmsr 5\n\t""isync\n\t""sync\n\t""lwz 0,0(1)\n\t""addi 1,1,16\n\t""mtlr 0\n\t""blr")
volatile LONG counter
Definition: atomic.h:11
#define c
Definition: ke_i.h:80
static __inline__ void atomic_inc ( atomic_t v)
static

atomic_inc - increment atomic variable : pointer of type atomic_t

Atomically increments by 1. Note that the guaranteed useful range of an atomic_t is only 24 bits.

Definition at line 953 of file linux.h.

954 {
955 #if 0
956  __asm__ __volatile__(
957  LOCK "incl %0"
958  :"=m" (v->counter)
959  :"m" (v->counter));
960 #endif
961 }
#define LOCK
Definition: linux.h:856
__asm__("\t.globl GetPhys\n""GetPhys:\t\n""mflr 0\n\t""stwu 0,-16(1)\n\t""mfmsr 5\n\t""andi. 6,5,0xffef\n\t""mtmsr 6\n\t""isync\n\t""sync\n\t""lwz 3,0(3)\n\t""mtmsr 5\n\t""isync\n\t""sync\n\t""lwz 0,0(1)\n\t""addi 1,1,16\n\t""mtlr 0\n\t""blr")
volatile LONG counter
Definition: atomic.h:11
static __inline__ int atomic_inc_and_test ( atomic_t v)
static

atomic_inc_and_test - increment and test : pointer of type atomic_t

Atomically increments by 1 and returns true if the result is zero, or false for all other cases. Note that the guaranteed useful range of an atomic_t is only 24 bits.

Definition at line 1013 of file linux.h.

1014 {
1015 #if 0
1016  unsigned char c;
1017 
1018  __asm__ __volatile__(
1019  LOCK "incl %0; sete %1"
1020  :"=m" (v->counter), "=qm" (c)
1021  :"m" (v->counter) : "memory");
1022  return c != 0;
1023 #else
1024  return 1;
1025 #endif
1026 }
#define LOCK
Definition: linux.h:856
__asm__("\t.globl GetPhys\n""GetPhys:\t\n""mflr 0\n\t""stwu 0,-16(1)\n\t""mfmsr 5\n\t""andi. 6,5,0xffef\n\t""mtmsr 6\n\t""isync\n\t""sync\n\t""lwz 3,0(3)\n\t""mtmsr 5\n\t""isync\n\t""sync\n\t""lwz 0,0(1)\n\t""addi 1,1,16\n\t""mtlr 0\n\t""blr")
volatile LONG counter
Definition: atomic.h:11
#define c
Definition: ke_i.h:80
static __inline__ void atomic_sub ( int  i,
atomic_t v 
)
static

atomic_sub - subtract the atomic variable : integer value to subtract : pointer of type atomic_t

Atomically subtracts from . Note that the guaranteed useful range of an atomic_t is only 24 bits.

Definition at line 913 of file linux.h.

914 {
915 #if 0
916  __asm__ __volatile__(
917  LOCK "subl %1,%0"
918  :"=m" (v->counter)
919  :"ir" (i), "m" (v->counter));
920 #endif
921 }
#define LOCK
Definition: linux.h:856
__asm__("\t.globl GetPhys\n""GetPhys:\t\n""mflr 0\n\t""stwu 0,-16(1)\n\t""mfmsr 5\n\t""andi. 6,5,0xffef\n\t""mtmsr 6\n\t""isync\n\t""sync\n\t""lwz 3,0(3)\n\t""mtmsr 5\n\t""isync\n\t""sync\n\t""lwz 0,0(1)\n\t""addi 1,1,16\n\t""mtlr 0\n\t""blr")
GLenum GLclampf GLint i
Definition: glfuncs.h:14
volatile LONG counter
Definition: atomic.h:11
static __inline__ int atomic_sub_and_test ( int  i,
atomic_t v 
)
static

atomic_sub_and_test - subtract value from variable and test result : integer value to subtract : pointer of type atomic_t

Atomically subtracts from and returns true if the result is zero, or false for all other cases. Note that the guaranteed useful range of an atomic_t is only 24 bits.

Definition at line 933 of file linux.h.

934 {
935 #if 0
936  unsigned char c;
937 
938  __asm__ __volatile__(
939  LOCK "subl %2,%0; sete %1"
940  :"=m" (v->counter), "=qm" (c)
941  :"ir" (i), "m" (v->counter) : "memory");
942  return c;
943 #endif
944 }
#define LOCK
Definition: linux.h:856
__asm__("\t.globl GetPhys\n""GetPhys:\t\n""mflr 0\n\t""stwu 0,-16(1)\n\t""mfmsr 5\n\t""andi. 6,5,0xffef\n\t""mtmsr 6\n\t""isync\n\t""sync\n\t""lwz 3,0(3)\n\t""mtmsr 5\n\t""isync\n\t""sync\n\t""lwz 0,0(1)\n\t""addi 1,1,16\n\t""mtlr 0\n\t""blr")
GLenum GLclampf GLint i
Definition: glfuncs.h:14
volatile LONG counter
Definition: atomic.h:11
#define c
Definition: ke_i.h:80
int do_select ( int  n,
fd_set_bits fds,
long timeout 
)

Referenced by TREEVIEW_LButtonDown().

static int get_fd_set ( unsigned long  nr,
void ufdset,
unsigned long fdset 
)
inlinestatic

Definition at line 1800 of file linux.h.

1801 {
1802 #if 0
1803  nr = FDS_BYTES(nr);
1804  if (ufdset) {
1805  int error;
1806  error = verify_area(VERIFY_WRITE, ufdset, nr);
1807  if (!error && __copy_from_user(fdset, ufdset, nr))
1808  error = -EFAULT;
1809  return error;
1810  }
1811  memset(fdset, 0, nr);
1812  return 0;
1813 #else
1814  return 0;
1815 #endif
1816 }
#define error(str)
Definition: mkdosfs.c:1605
ULONG nr
Definition: thread.c:7
Definition: arc.h:38
#define FDS_BYTES(nr)
Definition: linux.h:1791
#define memset(x, y, z)
Definition: compat.h:39
unsigned long int htonl ( unsigned long  int)
unsigned short int htons ( unsigned short  int)
static void init_waitqueue_entry ( wait_queue_t q,
struct task_struct p 
)
inlinestatic

Definition at line 1521 of file linux.h.

1522 {
1523 #if 0
1524 #if WAITQUEUE_DEBUG
1525  if (!q || !p)
1526  WQ_BUG();
1527 #endif
1528  q->flags = 0;
1529  q->task = p;
1530 #if WAITQUEUE_DEBUG
1531  q->__magic = (long)&q->__magic;
1532 #endif
1533 #endif
1534 }
#define WQ_BUG()
Definition: linux.h:1460
unsigned long
Definition: typeof.h:99
GLdouble GLdouble GLdouble GLdouble q
Definition: gl.h:2063
GLfloat GLfloat p
Definition: glext.h:8902
static void init_waitqueue_head ( wait_queue_head_t q)
inlinestatic

Definition at line 1505 of file linux.h.

1506 {
1507 #if 0
1508 #if WAITQUEUE_DEBUG
1509  if (!q)
1510  WQ_BUG();
1511 #endif
1514 #if WAITQUEUE_DEBUG
1515  q->__magic = (long)&q->__magic;
1516  q->__creator = (long)current_text_addr();
1517 #endif
1518 #endif
1519 }
spinlock_t lock
Definition: module.h:489
struct list_head task_list
Definition: module.h:490
#define WQ_BUG()
Definition: linux.h:1460
unsigned long
Definition: typeof.h:99
#define INIT_LIST_HEAD(ptr)
Definition: linux.h:1091
#define WAITQUEUE_RW_LOCK_UNLOCKED
Definition: linux.h:1394
void* kmem_cache_alloc ( kmem_cache_t ,
int   
)

Definition at line 92 of file linux.c.

Referenced by new_buffer_head().

93 {
94  PVOID ptr = NULL;
95  ptr = ExAllocateFromNPagedLookasideList(&(kc->la));
96  if (ptr) {
97  atomic_inc(&kc->count);
98  atomic_inc(&kc->acount);
99  }
100  return ptr;
101 }
DWORD *typedef PVOID
Definition: winlogon.h:52
static PVOID ptr
Definition: dispmode.c:30
smooth NULL
Definition: ftsmooth.c:557
static void atomic_inc(atomic_t volatile *v)
Definition: atomic.h:95
kmem_cache_t* kmem_cache_create ( const char ,
size_t  ,
size_t  ,
unsigned  long,
void(*)(void *, kmem_cache_t *, unsigned long ,
void(*)(void *, kmem_cache_t *, unsigned long  
)
int kmem_cache_destroy ( kmem_cache_t )

Definition at line 82 of file linux.c.

Referenced by ext2_destroy_bh().

83 {
84  ASSERT(kc != NULL);
85 
86  ExDeleteNPagedLookasideList(&(kc->la));
87  kfree(kc);
88 
89  return 0;
90 }
ASSERT((InvokeOnSuccess||InvokeOnError||InvokeOnCancel)?(CompletionRoutine!=NULL):TRUE)
smooth NULL
Definition: ftsmooth.c:557
VOID NTAPI ExDeleteNPagedLookasideList(IN PNPAGED_LOOKASIDE_LIST Lookaside)
Definition: lookas.c:174
void kfree(const void *)
void kmem_cache_free ( kmem_cache_t ,
void  
)

Definition at line 103 of file linux.c.

Referenced by free_buffer_head().

104 {
105  if (p) {
106  atomic_dec(&kc->count);
107  ExFreeToNPagedLookasideList(&(kc->la), p);
108  }
109 }
GLfloat GLfloat p
Definition: glext.h:8902
static void atomic_dec(atomic_t volatile *v)
Definition: atomic.h:107
void kmem_cache_init ( void  )
int kmem_cache_shrink ( kmem_cache_t )
unsigned int kmem_cache_size ( kmem_cache_t )
void kmem_cache_sizes_init ( void  )
kmem_cache_t* kmem_find_general_cachep ( size_t  ,
int  gfpflags 
)
static void list_add ( struct list_head new,
struct list_head head 
)
inlinestatic

list_add - add a new entry : new entry to be added : list head to add it after

Insert a new entry after the specified head. This is good for implementing stacks.

Definition at line 1121 of file linux.h.

Referenced by __add_wait_queue(), and list_move().

1122 {
1123 #if 0
1124  __list_add(new, head, head->next);
1125 #endif
1126 }
static void __list_add(struct list_head *new, struct list_head *prev, struct list_head *next)
Definition: linux.h:1101
struct list_head * next
Definition: list.h:16
static void list_add_tail ( struct list_head new,
struct list_head head 
)
inlinestatic

list_add_tail - add a new entry : new entry to be added : list head to add it before

Insert a new entry before the specified head. This is useful for implementing queues.

Definition at line 1136 of file linux.h.

Referenced by __add_wait_queue_tail(), and list_move_tail().

1137 {
1138 #if 0
1139  __list_add(new, head->prev, head);
1140 #endif
1141 }
static void __list_add(struct list_head *new, struct list_head *prev, struct list_head *next)
Definition: linux.h:1101
struct list_head * prev
Definition: list.h:16
static void list_del ( struct list_head entry)
inlinestatic

list_del - deletes entry from list. : the element to delete from the list. Note: list_empty on entry does not return true after this, the entry is in an undefined state.

Definition at line 1161 of file linux.h.

Referenced by __remove_wait_queue().

1162 {
1163 #if 0
1164  __list_del(entry->prev, entry->next);
1165  entry->next = (void *) 0;
1166  entry->prev = (void *) 0;
1167 #endif
1168 }
struct list_head * next
Definition: list.h:16
struct list_head * prev
Definition: list.h:16
static void __list_del(struct list_head *prev, struct list_head *next)
Definition: linux.h:1150
static void list_del_init ( struct list_head entry)
inlinestatic

list_del_init - deletes entry from list and reinitialize it. : the element to delete from the list.

Definition at line 1174 of file linux.h.

1175 {
1176 #if 0
1177  __list_del(entry->prev, entry->next);
1178  INIT_LIST_HEAD(entry);
1179 #endif
1180 }
struct list_head * next
Definition: list.h:16
struct list_head * prev
Definition: list.h:16
#define INIT_LIST_HEAD(ptr)
Definition: linux.h:1091
static void __list_del(struct list_head *prev, struct list_head *next)
Definition: linux.h:1150
static int list_empty ( struct list_head head)
inlinestatic

list_empty - tests whether a list is empty : the list to test.

Definition at line 1213 of file linux.h.

Referenced by list_splice(), list_splice_init(), and waitqueue_active().

1214 {
1215  return head->next == head;
1216 }
struct outqueuenode * head
Definition: adnsresfilter.c:66
struct list_head * next
Definition: list.h:16
static void list_move ( struct list_head list,
struct list_head head 
)
inlinestatic

list_move - delete from one list and add as another's head : the entry to move : the head that will precede our entry

Definition at line 1187 of file linux.h.

1188 {
1189 #if 0
1190  __list_del(list->prev, list->next);
1191  list_add(list, head);
1192 #endif
1193 }
struct list_head * next
Definition: list.h:16
struct list_head * prev
Definition: list.h:16
static void __list_del(struct list_head *prev, struct list_head *next)
Definition: linux.h:1150
static void list_add(struct list_head *new, struct list_head *head)
Definition: linux.h:1121
static void list_move_tail ( struct list_head list,
struct list_head head 
)
inlinestatic

list_move_tail - delete from one list and add as another's tail : the entry to move : the head that will follow our entry

Definition at line 1200 of file linux.h.

1202 {
1203 #if 0
1204  __list_del(list->prev, list->next);
1205  list_add_tail(list, head);
1206 #endif
1207 }
struct list_head * next
Definition: list.h:16
struct list_head * prev
Definition: list.h:16
static void __list_del(struct list_head *prev, struct list_head *next)
Definition: linux.h:1150
static void list_add_tail(struct list_head *new, struct list_head *head)
Definition: linux.h:1136
static void list_splice ( struct list_head list,
struct list_head head 
)
inlinestatic

list_splice - join two lists : the new list to add. : the place to add it in the first list.

Definition at line 1239 of file linux.h.

1240 {
1241 #if 0
1242  if (!list_empty(list))
1243  __list_splice(list, head);
1244 #endif
1245 }
static void __list_splice(struct list_head *list, struct list_head *head)
Definition: linux.h:1218
static int list_empty(struct list_head *head)
Definition: linux.h:1213
static void list_splice_init ( struct list_head list,
struct list_head head 
)
inlinestatic

list_splice_init - join two lists and reinitialise the emptied list. : the new list to add. : the place to add it in the first list.

The list at is reinitialised

Definition at line 1254 of file linux.h.

1256 {
1257 #if 0
1258  if (!list_empty(list)) {
1259  __list_splice(list, head);
1260  INIT_LIST_HEAD(list);
1261  }
1262 #endif
1263 }
static void __list_splice(struct list_head *list, struct list_head *head)
Definition: linux.h:1218
#define INIT_LIST_HEAD(ptr)
Definition: linux.h:1091
static int list_empty(struct list_head *head)
Definition: linux.h:1213
unsigned long int ntohl ( unsigned long  int)
unsigned short int ntohs ( unsigned short  int)
void poll_freewait ( poll_table pt)
static void poll_initwait ( poll_table pt)
inlinestatic

Definition at line 1769 of file linux.h.

1770 {
1771  pt->error = 0;
1772  pt->table = NULL;
1773 }
#define NULL
Definition: linux.h:6
struct poll_table_page * table
Definition: linux.h:1758
static void poll_wait ( struct file filp,
wait_queue_head_t wait_address,
poll_table p 
)
inlinestatic

Definition at line 1763 of file linux.h.

1764 {
1765  if (p && wait_address)
1766  __pollwait(filp, wait_address, p);
1767 }
void __pollwait(struct file *filp, wait_queue_head_t *wait_address, poll_table *p)
static void set_fd_set ( unsigned long  nr,
void ufdset,
unsigned long fdset 
)
inlinestatic

Definition at line 1819 of file linux.h.

1820 {
1821 #if 0
1822  if (ufdset)
1823  __copy_to_user(ufdset, fdset, FDS_BYTES(nr));
1824 #endif
1825 }
ULONG nr
Definition: thread.c:7
#define FDS_BYTES(nr)
Definition: linux.h:1791
static int waitqueue_active ( wait_queue_head_t q)
inlinestatic

Definition at line 1536 of file linux.h.

1537 {
1538 #if 0
1539 #if WAITQUEUE_DEBUG
1540  if (!q)
1541  WQ_BUG();
1542  CHECK_MAGIC_WQHEAD(q);
1543 #endif
1544 
1545  return !list_empty(&q->task_list);
1546 #endif
1547 }
struct list_head task_list
Definition: module.h:490
#define WQ_BUG()
Definition: linux.h:1460
static int list_empty(struct list_head *head)
Definition: linux.h:1213
#define CHECK_MAGIC_WQHEAD(x)
Definition: linux.h:1462
static void zero_fd_set ( unsigned long  nr,
unsigned long fdset 
)
inlinestatic

Definition at line 1828 of file linux.h.

1829 {
1830 #if 0
1831  memset(fdset, 0, FDS_BYTES(nr));
1832 #endif
1833 }
ULONG nr
Definition: thread.c:7
#define FDS_BYTES(nr)
Definition: linux.h:1791
#define memset(x, y, z)
Definition: compat.h:39

Variable Documentation

kmem_cache_t* bh_cachep
kmem_cache_t* dquot_cachep
kmem_cache_t* files_cachep
kmem_cache_t* filp_cachep
kmem_cache_t* fs_cachep
kmem_cache_t* mm_cachep
kmem_cache_t* names_cachep
kmem_cache_t* sigact_cachep
kmem_cache_t* vm_area_cachep