ReactOS 0.4.16-dev-401-g45b008d
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

◆ ____cacheline_aligned

#define ____cacheline_aligned

Definition at line 829 of file linux.h.

◆ ___constant_swab16

#define ___constant_swab16 (   x)
Value:
((__u16)( \
(((__u16)(x) & (__u16)0x00ffU) << 8) | \
(((__u16)(x) & (__u16)0xff00U) >> 8) ))
u16 __u16
Definition: btrfs.h:18
unsigned short __u16
Definition: linux.h:38
GLint GLint GLint GLint GLint x
Definition: gl.h:1548

Definition at line 393 of file linux.h.

◆ ___constant_swab24

#define ___constant_swab24 (   x)
Value:
((__u32)( \
(((__u32)(x) & (__u32)0x000000ffU) << 16) | \
(((__u32)(x) & (__u32)0x0000ff00U) | \
(((__u32)(x) & (__u32)0x00ff0000U) >> 16) ))
u32 __u32
Definition: btrfs.h:19
unsigned int __u32
Definition: linux.h:41

Definition at line 397 of file linux.h.

◆ ___constant_swab32

#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) ))

Definition at line 402 of file linux.h.

◆ ___constant_swab64

#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) ))
u64 __u64
Definition: btrfs.h:20
#define __u64
Definition: types.h:17

Definition at line 408 of file linux.h.

◆ ___swab16

#define ___swab16 (   x)
Value:
({ \
__u16 __x = (x); \
((__u16)( \
(((__u16)(__x) & (__u16)0x00ffU) << 8) | \
(((__u16)(__x) & (__u16)0xff00U) >> 8) )); \
})

Definition at line 352 of file linux.h.

◆ ___swab24

#define ___swab24 (   x)
Value:
({ \
__u32 __x = (x); \
((__u32)( \
((__x & (__u32)0x000000ffUL) << 16) | \
(__x & (__u32)0x0000ff00UL) | \
((__x & (__u32)0x00ff0000UL) >> 16) )); \
})

Definition at line 360 of file linux.h.

◆ ___swab32

#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) )); \
})

Definition at line 369 of file linux.h.

◆ ___swab64

#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) )); \
})

Definition at line 379 of file linux.h.

◆ __arch__swab16

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

Definition at line 423 of file linux.h.

◆ __arch__swab16p

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

Definition at line 436 of file linux.h.

◆ __arch__swab16s

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

Definition at line 449 of file linux.h.

◆ __arch__swab24

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

Definition at line 426 of file linux.h.

◆ __arch__swab24p

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

Definition at line 439 of file linux.h.

◆ __arch__swab24s

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

Definition at line 452 of file linux.h.

◆ __arch__swab32

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

Definition at line 429 of file linux.h.

◆ __arch__swab32p

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

Definition at line 442 of file linux.h.

◆ __arch__swab32s

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

Definition at line 455 of file linux.h.

◆ __arch__swab64

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

Definition at line 432 of file linux.h.

◆ __arch__swab64p

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

Definition at line 445 of file linux.h.

◆ __arch__swab64s

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

Definition at line 458 of file linux.h.

◆ __be16_to_cpu

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

Definition at line 784 of file linux.h.

◆ __be16_to_cpup

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

Definition at line 800 of file linux.h.

◆ __be16_to_cpus

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

Definition at line 816 of file linux.h.

◆ __be24_to_cpu

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

Definition at line 782 of file linux.h.

◆ __be24_to_cpup

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

Definition at line 798 of file linux.h.

◆ __be24_to_cpus

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

Definition at line 814 of file linux.h.

◆ __be32_to_cpu

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

Definition at line 780 of file linux.h.

◆ __be32_to_cpup

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

Definition at line 796 of file linux.h.

◆ __be32_to_cpus

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

Definition at line 812 of file linux.h.

◆ __be64_to_cpu

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

Definition at line 778 of file linux.h.

◆ __be64_to_cpup

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

Definition at line 794 of file linux.h.

◆ __be64_to_cpus

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

Definition at line 810 of file linux.h.

◆ __BIT_TYPES_DEFINED__

#define __BIT_TYPES_DEFINED__

Definition at line 278 of file linux.h.

◆ __constant_be16_to_cpu

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

Definition at line 768 of file linux.h.

◆ __constant_be24_to_cpu

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

Definition at line 766 of file linux.h.

◆ __constant_be32_to_cpu

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

Definition at line 764 of file linux.h.

◆ __constant_be64_to_cpu

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

Definition at line 762 of file linux.h.

◆ __constant_cpu_to_be16

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

Definition at line 767 of file linux.h.

◆ __constant_cpu_to_be24

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

Definition at line 765 of file linux.h.

◆ __constant_cpu_to_be32

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

Definition at line 763 of file linux.h.

◆ __constant_cpu_to_be64

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

Definition at line 761 of file linux.h.

◆ __constant_cpu_to_le16

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

Definition at line 759 of file linux.h.

◆ __constant_cpu_to_le24

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

Definition at line 757 of file linux.h.

◆ __constant_cpu_to_le32

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

Definition at line 755 of file linux.h.

◆ __constant_cpu_to_le64

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

Definition at line 753 of file linux.h.

◆ __constant_htonl

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

Definition at line 749 of file linux.h.

◆ __constant_htons

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

Definition at line 751 of file linux.h.

◆ __constant_le16_to_cpu

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

Definition at line 760 of file linux.h.

◆ __constant_le24_to_cpu

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

Definition at line 758 of file linux.h.

◆ __constant_le32_to_cpu

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

Definition at line 756 of file linux.h.

◆ __constant_le64_to_cpu

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

Definition at line 754 of file linux.h.

◆ __constant_ntohl

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

Definition at line 750 of file linux.h.

◆ __constant_ntohs

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

Definition at line 752 of file linux.h.

◆ __cpu_to_be16

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

Definition at line 783 of file linux.h.

◆ __cpu_to_be16p

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

Definition at line 799 of file linux.h.

◆ __cpu_to_be16s

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

Definition at line 815 of file linux.h.

◆ __cpu_to_be24

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

Definition at line 781 of file linux.h.

◆ __cpu_to_be24p

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

Definition at line 797 of file linux.h.

◆ __cpu_to_be24s

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

Definition at line 813 of file linux.h.

◆ __cpu_to_be32

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

Definition at line 779 of file linux.h.

◆ __cpu_to_be32p

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

Definition at line 795 of file linux.h.

◆ __cpu_to_be32s

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

Definition at line 811 of file linux.h.

◆ __cpu_to_be64

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

Definition at line 777 of file linux.h.

◆ __cpu_to_be64p

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

Definition at line 793 of file linux.h.

◆ __cpu_to_be64s

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

Definition at line 809 of file linux.h.

◆ __cpu_to_le16

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

Definition at line 775 of file linux.h.

◆ __cpu_to_le16p

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

Definition at line 791 of file linux.h.

◆ __cpu_to_le16s

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

Definition at line 807 of file linux.h.

◆ __cpu_to_le24

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

Definition at line 773 of file linux.h.

◆ __cpu_to_le24p

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

Definition at line 789 of file linux.h.

◆ __cpu_to_le24s

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

Definition at line 805 of file linux.h.

◆ __cpu_to_le32

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

Definition at line 771 of file linux.h.

◆ __cpu_to_le32p

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

Definition at line 787 of file linux.h.

◆ __cpu_to_le32s

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

Definition at line 803 of file linux.h.

◆ __cpu_to_le64

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

Definition at line 769 of file linux.h.

◆ __cpu_to_le64p

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

Definition at line 785 of file linux.h.

◆ __cpu_to_le64s

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

Definition at line 801 of file linux.h.

◆ __FD_CLR

#define __FD_CLR (   fd,
  fdsetp 
)
Value:
__asm__ __volatile__("btrl %1,%0": \
"=m" (*(__kernel_fd_set *) (fdsetp)):"r" ((int) (fd)))
__asm__(".p2align 4, 0x90\n" ".seh_proc __seh2_global_filter_func\n" "__seh2_global_filter_func:\n" "\tsub %rbp, %rax\n" "\tpush %rbp\n" "\t.seh_pushreg %rbp\n" "\tsub $32, %rsp\n" "\t.seh_stackalloc 32\n" "\t.seh_endprologue\n" "\tsub %rax, %rdx\n" "\tmov %rdx, %rbp\n" "\tjmp *%r8\n" "__seh2_global_filter_func_exit:\n" "\t.p2align 4\n" "\tadd $32, %rsp\n" "\tpop %rbp\n" "\tret\n" "\t.seh_endproc")
static int fd
Definition: io.c:51

Definition at line 168 of file linux.h.

◆ __FD_ISSET

#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; }))

Definition at line 173 of file linux.h.

◆ __FD_SET

#define __FD_SET (   fd,
  fdsetp 
)
Value:
__asm__ __volatile__("btsl %1,%0": \
"=m" (*(__kernel_fd_set *) (fdsetp)):"r" ((int) (fd)))

Definition at line 163 of file linux.h.

◆ __FD_SETSIZE

#define __FD_SETSIZE   1024

Definition at line 95 of file linux.h.

◆ __FD_ZERO

#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)
#define __FDSET_LONGS
Definition: linux.h:98

Definition at line 181 of file linux.h.

◆ __FDELT

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

Definition at line 101 of file linux.h.

◆ __FDMASK

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

Definition at line 104 of file linux.h.

◆ __FDSET_LONGS

#define __FDSET_LONGS   (__FD_SETSIZE/__NFDBITS)

Definition at line 98 of file linux.h.

◆ __le16_to_cpu

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

Definition at line 776 of file linux.h.

◆ __le16_to_cpup

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

Definition at line 792 of file linux.h.

◆ __le16_to_cpus

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

Definition at line 808 of file linux.h.

◆ __le24_to_cpu

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

Definition at line 774 of file linux.h.

◆ __le24_to_cpup

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

Definition at line 790 of file linux.h.

◆ __le24_to_cpus

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

Definition at line 806 of file linux.h.

◆ __le32_to_cpu

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

Definition at line 772 of file linux.h.

◆ __le32_to_cpup

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

Definition at line 788 of file linux.h.

◆ __le32_to_cpus

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

Definition at line 804 of file linux.h.

◆ __le64_to_cpu

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

Definition at line 770 of file linux.h.

◆ __le64_to_cpup

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

Definition at line 786 of file linux.h.

◆ __le64_to_cpus

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

Definition at line 802 of file linux.h.

◆ __LITTLE_ENDIAN

#define __LITTLE_ENDIAN   1234

Definition at line 327 of file linux.h.

◆ __LITTLE_ENDIAN_BITFIELD

#define __LITTLE_ENDIAN_BITFIELD

Definition at line 330 of file linux.h.

◆ __NFDBITS

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

Definition at line 92 of file linux.h.

◆ __swab16

#define __swab16 (   x)    __fswab16(x)

Definition at line 483 of file linux.h.

◆ __swab24

#define __swab24 (   x)    __fswab24(x)

Definition at line 484 of file linux.h.

◆ __swab32

#define __swab32 (   x)    __fswab32(x)

Definition at line 485 of file linux.h.

◆ __swab64

#define __swab64 (   x)    __fswab64(x)

Definition at line 486 of file linux.h.

◆ __WAIT_QUEUE_HEAD_INITIALIZER

#define __WAIT_QUEUE_HEAD_INITIALIZER (   name)

Definition at line 1492 of file linux.h.

◆ __WAITQUEUE_DEBUG_INIT

#define __WAITQUEUE_DEBUG_INIT (   name)

Definition at line 1475 of file linux.h.

◆ __WAITQUEUE_HEAD_DEBUG_INIT

#define __WAITQUEUE_HEAD_DEBUG_INIT (   name)

Definition at line 1476 of file linux.h.

◆ __WAITQUEUE_INITIALIZER

#define __WAITQUEUE_INITIALIZER (   name,
  tsk 
)

Definition at line 1479 of file linux.h.

◆ __WALL

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

Definition at line 1337 of file linux.h.

◆ __WCLONE

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

Definition at line 1338 of file linux.h.

◆ __WNOTHREAD

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

Definition at line 1336 of file linux.h.

◆ _CADDR_T

#define _CADDR_T

Definition at line 261 of file linux.h.

◆ _CLOCK_T

#define _CLOCK_T

Definition at line 256 of file linux.h.

◆ _PTRDIFF_T

#define _PTRDIFF_T

Definition at line 246 of file linux.h.

◆ _SIZE_T

#define _SIZE_T

Definition at line 236 of file linux.h.

◆ _SSIZE_T

#define _SSIZE_T

Definition at line 241 of file linux.h.

◆ _TIME_T

#define _TIME_T

Definition at line 251 of file linux.h.

◆ atomic_clear_mask

#define atomic_clear_mask (   mask,
  addr 
)

Definition at line 1054 of file linux.h.

◆ ATOMIC_INIT

#define ATOMIC_INIT (   i)    { (i) }

Definition at line 866 of file linux.h.

◆ atomic_read

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

atomic_read - read atomic variable @v: pointer of type atomic_t

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

Definition at line 875 of file linux.h.

◆ atomic_set

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

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

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

Definition at line 885 of file linux.h.

◆ atomic_set_mask

#define atomic_set_mask (   mask,
  addr 
)

Definition at line 1060 of file linux.h.

◆ BITS_PER_LONG

#define BITS_PER_LONG   32

Definition at line 63 of file linux.h.

◆ CHECK_MAGIC

#define CHECK_MAGIC (   x)

Definition at line 1461 of file linux.h.

◆ CHECK_MAGIC_WQHEAD

#define CHECK_MAGIC_WQHEAD (   x)

Definition at line 1462 of file linux.h.

◆ DECLARE_WAIT_QUEUE_HEAD

#define DECLARE_WAIT_QUEUE_HEAD (   name)

Definition at line 1500 of file linux.h.

◆ DECLARE_WAITQUEUE

#define DECLARE_WAITQUEUE (   name,
  tsk 
)

Definition at line 1487 of file linux.h.

◆ FDS_BITPERLONG

#define FDS_BITPERLONG   (8*sizeof(long))

Definition at line 1789 of file linux.h.

◆ FDS_BYTES

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

Definition at line 1791 of file linux.h.

◆ FDS_LONGS

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

Definition at line 1790 of file linux.h.

◆ INIT_LIST_HEAD

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

Definition at line 1091 of file linux.h.

◆ list_entry

#define list_entry (   ptr,
  type,
  member 
)

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

Definition at line 1271 of file linux.h.

◆ list_for_each

#define list_for_each (   pos,
  head 
)

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

Definition at line 1281 of file linux.h.

◆ list_for_each_entry

#define list_for_each_entry (   pos,
  head,
  member 
)

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

Definition at line 1316 of file linux.h.

◆ list_for_each_prev

#define list_for_each_prev (   pos,
  head 
)

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

Definition at line 1292 of file linux.h.

◆ list_for_each_safe

#define list_for_each_safe (   pos,
  n,
  head 
)

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

Definition at line 1304 of file linux.h.

◆ LIST_HEAD

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

Definition at line 1088 of file linux.h.

◆ LIST_HEAD_INIT

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

Definition at line 1086 of file linux.h.

◆ LOCK

#define LOCK   ""

Definition at line 856 of file linux.h.

◆ NULL

#define NULL   (void*)0

Definition at line 6 of file linux.h.

◆ POLLERR

#define POLLERR   0x0008

Definition at line 1856 of file linux.h.

◆ POLLHUP

#define POLLHUP   0x0010

Definition at line 1857 of file linux.h.

◆ POLLIN

#define POLLIN   0x0001

Definition at line 1853 of file linux.h.

◆ POLLMSG

#define POLLMSG   0x0400

Definition at line 1865 of file linux.h.

◆ POLLNVAL

#define POLLNVAL   0x0020

Definition at line 1858 of file linux.h.

◆ POLLOUT

#define POLLOUT   0x0004

Definition at line 1855 of file linux.h.

◆ POLLPRI

#define POLLPRI   0x0002

Definition at line 1854 of file linux.h.

◆ POLLRDBAND

#define POLLRDBAND   0x0080

Definition at line 1862 of file linux.h.

◆ POLLRDNORM

#define POLLRDNORM   0x0040

Definition at line 1861 of file linux.h.

◆ POLLWRBAND

#define POLLWRBAND   0x0200

Definition at line 1864 of file linux.h.

◆ POLLWRNORM

#define POLLWRNORM   0x0100

Definition at line 1863 of file linux.h.

◆ SLAB_ATOMIC

#define SLAB_ATOMIC   GFP_ATOMIC

Definition at line 1625 of file linux.h.

◆ SLAB_CACHE_DMA

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

Definition at line 1644 of file linux.h.

◆ SLAB_CTOR_ATOMIC

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

Definition at line 1649 of file linux.h.

◆ SLAB_CTOR_CONSTRUCTOR

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

Definition at line 1648 of file linux.h.

◆ SLAB_CTOR_VERIFY

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

Definition at line 1650 of file linux.h.

◆ SLAB_DEBUG_FREE

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

Definition at line 1638 of file linux.h.

◆ SLAB_DEBUG_INITIAL

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

Definition at line 1639 of file linux.h.

◆ SLAB_DMA

#define SLAB_DMA   GFP_DMA

Definition at line 1629 of file linux.h.

◆ SLAB_HWCACHE_ALIGN

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

Definition at line 1643 of file linux.h.

◆ SLAB_KERNEL

#define SLAB_KERNEL   GFP_KERNEL

Definition at line 1627 of file linux.h.

◆ SLAB_LEVEL_MASK

Definition at line 1631 of file linux.h.

◆ SLAB_MUST_HWCACHE_ALIGN

#define SLAB_MUST_HWCACHE_ALIGN   0x00008000UL /* force alignment */

Definition at line 1645 of file linux.h.

◆ SLAB_NFS

#define SLAB_NFS   GFP_NFS

Definition at line 1628 of file linux.h.

◆ SLAB_NO_GROW

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

Definition at line 1632 of file linux.h.

◆ SLAB_NO_REAP

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

Definition at line 1642 of file linux.h.

◆ SLAB_NOFS

#define SLAB_NOFS   GFP_NOFS

Definition at line 1622 of file linux.h.

◆ SLAB_NOHIGHIO

#define SLAB_NOHIGHIO   GFP_NOHIGHIO

Definition at line 1624 of file linux.h.

◆ SLAB_NOIO

#define SLAB_NOIO   GFP_NOIO

Definition at line 1623 of file linux.h.

◆ SLAB_POISON

#define SLAB_POISON   0x00000800UL /* Poison objects */

Definition at line 1641 of file linux.h.

◆ SLAB_RED_ZONE

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

Definition at line 1640 of file linux.h.

◆ SLAB_USER

#define SLAB_USER   GFP_USER

Definition at line 1626 of file linux.h.

◆ smp_mb__after_atomic_dec

#define smp_mb__after_atomic_dec ( )

Definition at line 1068 of file linux.h.

◆ smp_mb__after_atomic_inc

#define smp_mb__after_atomic_inc ( )

Definition at line 1070 of file linux.h.

◆ smp_mb__before_atomic_dec

#define smp_mb__before_atomic_dec ( )

Definition at line 1067 of file linux.h.

◆ smp_mb__before_atomic_inc

#define smp_mb__before_atomic_inc ( )

Definition at line 1069 of file linux.h.

◆ UIO_FASTIOV

#define UIO_FASTIOV   8

Definition at line 1709 of file linux.h.

◆ UIO_MAXIOV

#define UIO_MAXIOV   1024

Definition at line 1710 of file linux.h.

◆ USE_RW_WAIT_QUEUE_SPINLOCK

#define USE_RW_WAIT_QUEUE_SPINLOCK   0

Definition at line 1378 of file linux.h.

◆ WAITQUEUE_DEBUG

#define WAITQUEUE_DEBUG   0

Definition at line 1357 of file linux.h.

◆ WAITQUEUE_RW_LOCK_UNLOCKED

#define WAITQUEUE_RW_LOCK_UNLOCKED   SPIN_LOCK_UNLOCKED

Definition at line 1394 of file linux.h.

◆ WNOHANG

#define WNOHANG   0x00000001

Definition at line 1333 of file linux.h.

◆ WQ_BUG

#define WQ_BUG ( )

Definition at line 1460 of file linux.h.

◆ WQ_CHECK_LIST_HEAD

#define WQ_CHECK_LIST_HEAD (   list)

Definition at line 1463 of file linux.h.

◆ WQ_FLAG_EXCLUSIVE

#define WQ_FLAG_EXCLUSIVE   0x01

Definition at line 1362 of file linux.h.

◆ wq_lock_t

#define wq_lock_t   spinlock_t

Definition at line 1393 of file linux.h.

◆ WQ_NOTE_WAKER

#define WQ_NOTE_WAKER (   tsk)

Definition at line 1464 of file linux.h.

◆ wq_read_lock

#define wq_read_lock   spin_lock

Definition at line 1396 of file linux.h.

◆ wq_read_lock_irqsave

#define wq_read_lock_irqsave   spin_lock_irqsave

Definition at line 1397 of file linux.h.

◆ wq_read_unlock

#define wq_read_unlock   spin_unlock

Definition at line 1398 of file linux.h.

◆ wq_read_unlock_irqrestore

#define wq_read_unlock_irqrestore   spin_unlock_irqrestore

Definition at line 1399 of file linux.h.

◆ wq_write_lock_irq

#define wq_write_lock_irq   spin_lock_irq

Definition at line 1400 of file linux.h.

◆ wq_write_lock_irqsave

#define wq_write_lock_irqsave   spin_lock_irqsave

Definition at line 1401 of file linux.h.

◆ wq_write_unlock

#define wq_write_unlock   spin_unlock

Definition at line 1403 of file linux.h.

◆ wq_write_unlock_irqrestore

#define wq_write_unlock_irqrestore   spin_unlock_irqrestore

Definition at line 1402 of file linux.h.

◆ WUNTRACED

#define WUNTRACED   0x00000002

Definition at line 1334 of file linux.h.

Typedef Documentation

◆ __kernel_caddr_t

Definition at line 139 of file linux.h.

◆ __kernel_clock_t

Definition at line 137 of file linux.h.

◆ __kernel_daddr_t

Definition at line 138 of file linux.h.

◆ __kernel_dev_t

Definition at line 123 of file linux.h.

◆ __kernel_gid16_t

Definition at line 141 of file linux.h.

◆ __kernel_gid32_t

Definition at line 143 of file linux.h.

◆ __kernel_gid_t

Definition at line 131 of file linux.h.

◆ __kernel_ino_t

Definition at line 124 of file linux.h.

◆ __kernel_ipc_pid_t

Definition at line 129 of file linux.h.

◆ __kernel_key_t

Definition at line 114 of file linux.h.

◆ __kernel_mode_t

Definition at line 125 of file linux.h.

◆ __kernel_nlink_t

Definition at line 126 of file linux.h.

◆ __kernel_off_t

Definition at line 127 of file linux.h.

◆ __kernel_old_gid_t

Definition at line 146 of file linux.h.

◆ __kernel_old_uid_t

Definition at line 145 of file linux.h.

◆ __kernel_pid_t

Definition at line 128 of file linux.h.

◆ __kernel_ptrdiff_t

Definition at line 134 of file linux.h.

◆ __kernel_sighandler_t

typedef void(* __kernel_sighandler_t) (int)

Definition at line 111 of file linux.h.

◆ __kernel_size_t

Definition at line 132 of file linux.h.

◆ __kernel_ssize_t

Definition at line 133 of file linux.h.

◆ __kernel_suseconds_t

Definition at line 136 of file linux.h.

◆ __kernel_time_t

Definition at line 135 of file linux.h.

◆ __kernel_uid16_t

Definition at line 140 of file linux.h.

◆ __kernel_uid32_t

Definition at line 142 of file linux.h.

◆ __kernel_uid_t

Definition at line 130 of file linux.h.

◆ __s16

typedef __signed__ short __s16

Definition at line 37 of file linux.h.

◆ __s32

typedef __signed__ int __s32

Definition at line 40 of file linux.h.

◆ __s8

typedef __signed__ char __s8

Definition at line 34 of file linux.h.

◆ __u16

typedef unsigned short __u16

Definition at line 38 of file linux.h.

◆ __u32

typedef unsigned int __u32

Definition at line 41 of file linux.h.

◆ __u8

typedef unsigned char __u8

Definition at line 35 of file linux.h.

◆ caddr_t

Definition at line 262 of file linux.h.

◆ clock_t

Definition at line 257 of file linux.h.

◆ daddr_t

Definition at line 203 of file linux.h.

◆ dev_t

Definition at line 197 of file linux.h.

◆ dma64_addr_t

typedef u64 dma64_addr_t

Definition at line 72 of file linux.h.

◆ dma_addr_t

typedef u32 dma_addr_t

Definition at line 70 of file linux.h.

◆ fd_set

Definition at line 196 of file linux.h.

◆ gid_t

Definition at line 224 of file linux.h.

◆ ino_t

Definition at line 198 of file linux.h.

◆ int16_t

typedef __s16 int16_t

Definition at line 283 of file linux.h.

◆ int32_t

typedef __s32 int32_t

Definition at line 285 of file linux.h.

◆ int8_t

typedef __s8 int8_t

Definition at line 281 of file linux.h.

◆ key_t

Definition at line 204 of file linux.h.

◆ kmem_cache_t

Definition at line 1614 of file linux.h.

◆ mem_map_t

◆ mode_t

Definition at line 199 of file linux.h.

◆ nlink_t

Definition at line 200 of file linux.h.

◆ off_t

Definition at line 201 of file linux.h.

◆ pid_t

Definition at line 202 of file linux.h.

◆ poll_table

◆ ptrdiff_t

Definition at line 247 of file linux.h.

◆ s16

typedef signed short s16

Definition at line 54 of file linux.h.

◆ s32

typedef signed int s32

Definition at line 57 of file linux.h.

◆ s64

typedef signed long long s64

Definition at line 60 of file linux.h.

◆ s8

typedef signed char s8

Definition at line 51 of file linux.h.

◆ size_t

static size_t

Definition at line 237 of file linux.h.

◆ ssize_t

Definition at line 242 of file linux.h.

◆ suseconds_t

Definition at line 205 of file linux.h.

◆ time_t

Definition at line 252 of file linux.h.

◆ u16

typedef unsigned short u16

Definition at line 55 of file linux.h.

◆ u32

typedef unsigned int u32

Definition at line 58 of file linux.h.

◆ u64

typedef unsigned long long u64

Definition at line 61 of file linux.h.

◆ u8

typedef unsigned char u8

Definition at line 52 of file linux.h.

◆ u_char

typedef unsigned char u_char

Definition at line 266 of file linux.h.

◆ u_int

typedef unsigned int u_int

Definition at line 268 of file linux.h.

◆ u_int16_t

typedef __u16 u_int16_t

Definition at line 282 of file linux.h.

◆ u_int32_t

typedef __u32 u_int32_t

Definition at line 284 of file linux.h.

◆ u_int8_t

typedef __u8 u_int8_t

Definition at line 280 of file linux.h.

◆ u_long

typedef unsigned long u_long

Definition at line 269 of file linux.h.

◆ u_short

Definition at line 267 of file linux.h.

◆ uid_t

Definition at line 223 of file linux.h.

◆ uint

typedef unsigned int uint

Definition at line 274 of file linux.h.

◆ uint16_t

typedef __u16 uint16_t

Definition at line 290 of file linux.h.

◆ uint32_t

typedef __u32 uint32_t

Definition at line 291 of file linux.h.

◆ uint8_t

typedef __u8 uint8_t

Definition at line 289 of file linux.h.

◆ ulong

typedef unsigned long ulong

Definition at line 275 of file linux.h.

◆ umode_t

Definition at line 27 of file linux.h.

◆ unchar

typedef unsigned char unchar

Definition at line 272 of file linux.h.

◆ ushort

Definition at line 273 of file linux.h.

◆ wait_queue_head_t

Definition at line 1414 of file linux.h.

◆ wait_queue_t

Definition at line 1370 of file linux.h.

Function Documentation

◆ __add_wait_queue()

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();
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 outqueuenode * head
Definition: adnsresfilter.c:66
static void list_add(struct list_head *new, struct list_head *head)
Definition: linux.h:1121
#define CHECK_MAGIC_WQHEAD(x)
Definition: linux.h:1462
#define CHECK_MAGIC(x)
Definition: linux.h:1461
#define WQ_BUG()
Definition: linux.h:1460
#define new(TYPE, numElems)
Definition: treelist.c:54

◆ __add_wait_queue_tail()

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();
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}
static void list_add_tail(struct list_head *new, struct list_head *head)
Definition: linux.h:1136

◆ __fswab16()

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

◆ __fswab24()

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

◆ __fswab32()

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

◆ __list_add()

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.

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

Referenced by list_add(), and list_add_tail().

◆ __list_del()

static void __list_del ( struct list_head prev,
struct list_head next 
)
inlinestatic

Definition at line 1150 of file linux.h.

1151{
1152 next->prev = prev;
1153 prev->next = next;
1154}

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

◆ __list_splice()

static void __list_splice ( struct list_head list,
struct list_head head 
)
inlinestatic

Definition at line 1218 of file linux.h.

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}
Definition: list.h:37
struct list * next
Definition: list.h:38
struct list * prev
Definition: list.h:39
const GLint * first
Definition: glext.h:5794
static UINT UINT last
Definition: font.c:45
Definition: list.h:15
struct list_head * prev
Definition: list.h:16

Referenced by list_splice(), and list_splice_init().

◆ __pollwait()

void __pollwait ( struct file filp,
wait_queue_head_t wait_address,
poll_table p 
)

Referenced by poll_wait().

◆ __remove_wait_queue()

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}
static void list_del(struct list_head *entry)
Definition: linux.h:1161

◆ __swab16p()

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

◆ __swab16s()

static __inline__ void __swab16s ( __u16 addr)
static

Definition at line 498 of file linux.h.

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

◆ __swab24p()

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

◆ __swab24s()

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

◆ __swab32p()

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

◆ __swab32s()

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

◆ atomic_add()

static __inline__ void atomic_add ( int  i,
atomic_t v 
)
static

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

Atomically adds @i to @v. 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
const GLdouble * v
Definition: gl.h:2040
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Definition: glfuncs.h:248

◆ atomic_add_negative()

static __inline__ int atomic_add_negative ( int  i,
atomic_t v 
)
static

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

Atomically adds @i to @v 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}
const GLubyte * c
Definition: glext.h:8905
#define c
Definition: ke_i.h:80

◆ atomic_dec()

static __inline__ void atomic_dec ( atomic_t v)
static

atomic_dec - decrement atomic variable @v: pointer of type atomic_t

Atomically decrements @v 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}

◆ atomic_dec_and_test()

static __inline__ int atomic_dec_and_test ( atomic_t v)
static

atomic_dec_and_test - decrement and test @v: pointer of type atomic_t

Atomically decrements @v 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}

◆ atomic_inc()

static __inline__ void atomic_inc ( atomic_t v)
static

atomic_inc - increment atomic variable @v: pointer of type atomic_t

Atomically increments @v 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}

◆ atomic_inc_and_test()

static __inline__ int atomic_inc_and_test ( atomic_t v)
static

atomic_inc_and_test - increment and test @v: pointer of type atomic_t

Atomically increments @v 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}

◆ atomic_sub()

static __inline__ void atomic_sub ( int  i,
atomic_t v 
)
static

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

Atomically subtracts @i from @v. 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}

◆ atomic_sub_and_test()

static __inline__ int atomic_sub_and_test ( int  i,
atomic_t v 
)
static

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

Atomically subtracts @i from @v 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}

◆ do_select()

int do_select ( int  n,
fd_set_bits fds,
long timeout 
)

Referenced by TREEVIEW_LButtonDown().

◆ get_fd_set()

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 EFAULT
Definition: acclib.h:86
#define FDS_BYTES(nr)
Definition: linux.h:1791
#define error(str)
Definition: mkdosfs.c:1605
ULONG nr
Definition: thread.c:7
#define memset(x, y, z)
Definition: compat.h:39

◆ htonl()

◆ htons()

◆ init_waitqueue_entry()

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}
GLdouble GLdouble GLdouble GLdouble q
Definition: gl.h:2063
GLfloat GLfloat p
Definition: glext.h:8902
#define long
Definition: qsort.c:33

◆ init_waitqueue_head()

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
1513 INIT_LIST_HEAD(&q->task_list);
1514#if WAITQUEUE_DEBUG
1515 q->__magic = (long)&q->__magic;
1516 q->__creator = (long)current_text_addr();
1517#endif
1518#endif
1519}
#define INIT_LIST_HEAD(ptr)
Definition: linux.h:1091
#define WAITQUEUE_RW_LOCK_UNLOCKED
Definition: linux.h:1394

◆ kfree()

void kfree ( const void )

◆ kmalloc()

void * kmalloc ( size_t  ,
int   
)

◆ kmem_cache_alloc()

void * kmem_cache_alloc ( kmem_cache_t kc,
int  flags 
)

Definition at line 92 of file linux.c.

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}
static void atomic_inc(atomic_t volatile *v)
Definition: atomic.h:95
#define NULL
Definition: types.h:112
atomic_t acount
Definition: module.h:1142
atomic_t count
Definition: module.h:1141
NPAGED_LOOKASIDE_LIST la
Definition: module.h:1143

Referenced by new_buffer_head().

◆ kmem_cache_create()

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  
)

◆ kmem_cache_destroy()

int kmem_cache_destroy ( kmem_cache_t kc)

Definition at line 82 of file linux.c.

83{
84 ASSERT(kc != NULL);
85
87 kfree(kc);
88
89 return 0;
90}
VOID NTAPI ExDeleteNPagedLookasideList(IN PNPAGED_LOOKASIDE_LIST Lookaside)
Definition: lookas.c:170
#define ASSERT(a)
Definition: mode.c:44
#define kfree(p)
Definition: module.h:1126

Referenced by ext2_destroy_bh().

◆ kmem_cache_free()

void kmem_cache_free ( kmem_cache_t kc,
void p 
)

Definition at line 103 of file linux.c.

104{
105 if (p) {
106 atomic_dec(&kc->count);
107 ExFreeToNPagedLookasideList(&(kc->la), p);
108 }
109}
static void atomic_dec(atomic_t volatile *v)
Definition: atomic.h:107

Referenced by free_buffer_head().

◆ kmem_cache_init()

void kmem_cache_init ( void  )

◆ kmem_cache_shrink()

int kmem_cache_shrink ( kmem_cache_t )

◆ kmem_cache_size()

unsigned int kmem_cache_size ( kmem_cache_t )

◆ kmem_cache_sizes_init()

void kmem_cache_sizes_init ( void  )

◆ kmem_find_general_cachep()

kmem_cache_t * kmem_find_general_cachep ( size_t  ,
int  gfpflags 
)

◆ list_add()

static void list_add ( struct list_head new,
struct list_head head 
)
inlinestatic

list_add - add a new entry @new: new entry to be added @head: 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.

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

Referenced by __add_wait_queue(), and list_move().

◆ list_add_tail()

static void list_add_tail ( struct list_head new,
struct list_head head 
)
inlinestatic

list_add_tail - add a new entry @new: new entry to be added @head: 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.

1137{
1138#if 0
1139 __list_add(new, head->prev, head);
1140#endif
1141}

Referenced by __add_wait_queue_tail(), and list_move_tail().

◆ list_del()

static void list_del ( struct list_head entry)
inlinestatic

list_del - deletes entry from list. @entry: 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.

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

Referenced by __remove_wait_queue().

◆ list_del_init()

static void list_del_init ( struct list_head entry)
inlinestatic

list_del_init - deletes entry from list and reinitialize it. @entry: 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);
1179#endif
1180}

◆ list_empty()

static int list_empty ( struct list_head head)
inlinestatic

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

Definition at line 1213 of file linux.h.

1214{
1215 return head->next == head;
1216}

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

◆ list_move()

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 @list: the entry to move @head: the head that will precede our entry

Definition at line 1187 of file linux.h.

1188{
1189#if 0
1191 list_add(list, head);
1192#endif
1193}

◆ list_move_tail()

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 @list: the entry to move @head: the head that will follow our entry

Definition at line 1200 of file linux.h.

1202{
1203#if 0
1206#endif
1207}

◆ list_splice()

static void list_splice ( struct list_head list,
struct list_head head 
)
inlinestatic

list_splice - join two lists @list: the new list to add. @head: 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))
1244#endif
1245}
static int list_empty(struct list_head *head)
Definition: linux.h:1213
static void __list_splice(struct list_head *list, struct list_head *head)
Definition: linux.h:1218

◆ list_splice_init()

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. @list: the new list to add. @head: the place to add it in the first list.

The list at @list is reinitialised

Definition at line 1254 of file linux.h.

1256{
1257#if 0
1258 if (!list_empty(list)) {
1261 }
1262#endif
1263}

◆ ntohl()

◆ ntohs()

◆ poll_freewait()

void poll_freewait ( poll_table pt)

◆ poll_initwait()

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 pt(x, y)
Definition: drawing.c:79
#define NULL
Definition: linux.h:6

◆ poll_wait()

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)

◆ set_fd_set()

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}

◆ waitqueue_active()

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();
1543#endif
1544
1545 return !list_empty(&q->task_list);
1546#endif
1547}

◆ zero_fd_set()

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}

Variable Documentation

◆ bh_cachep

kmem_cache_t* bh_cachep
extern

◆ dquot_cachep

kmem_cache_t* dquot_cachep
extern

◆ files_cachep

kmem_cache_t* files_cachep
extern

◆ filp_cachep

kmem_cache_t* filp_cachep
extern

◆ fs_cachep

kmem_cache_t* fs_cachep
extern

◆ mm_cachep

kmem_cache_t* mm_cachep
extern

◆ names_cachep

kmem_cache_t* names_cachep
extern

◆ sigact_cachep

kmem_cache_t* sigact_cachep
extern

◆ vm_area_cachep

kmem_cache_t* vm_area_cachep
extern