ReactOS  r76032
module.h File Reference
#include <linux/types.h>
#include <linux/errno.h>
#include <linux/rbtree.h>
#include <linux/fs.h>
#include <linux/log2.h>
#include <linux/list.h>
Include dependency graph for module.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _spinlock_t
 
struct  task_struct
 
struct  mutex
 
struct  __wait_queue
 
struct  __wait_queue_head
 
struct  timer_list
 
struct  block_device
 
struct  page
 
struct  buffer_head
 
struct  nls_table
 
struct  kmem_cache
 

Macros

#define _WIN2K_TARGET_   1
 
#define offsetof(type, member)   ((ULONG_PTR)&(((type *)0)->member))
 
#define container_of(ptr, type, member)   ((type *)((char *)ptr - (char *)offsetof(type, member)))
 
#define __swab16(x)   RtlUshortByteSwap(x)
 
#define __swab32(x)   RtlUlongByteSwap(x)
 
#define __swab64(x)   RtlUlonglongByteSwap(x)
 
#define __constant_swab32   __swab32
 
#define __constant_swab64   __swab64
 
#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_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_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_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_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_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_be16p(x)   __swab16p((x))
 
#define __be16_to_cpup(x)   __swab16p((x))
 
#define __cpu_to_le64s(x)   ((__s64)(x))
 
#define __le64_to_cpus(x)   ((__s64)(x))
 
#define __cpu_to_le32s(x)   ((__s32)(x))
 
#define __le32_to_cpus(x)   ((__s32)(x))
 
#define __cpu_to_le16s(x)   ((__s16)(x))
 
#define __le16_to_cpus(x)   ((__s16)(x))
 
#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_be16s(x)   __swab16s((x))
 
#define __be16_to_cpus(x)   __swab16s((x))
 
#define cpu_to_le64   __cpu_to_le64
 
#define le64_to_cpu   __le64_to_cpu
 
#define cpu_to_le32   __cpu_to_le32
 
#define le32_to_cpu   __le32_to_cpu
 
#define cpu_to_le16   __cpu_to_le16
 
#define le16_to_cpu   __le16_to_cpu
 
#define cpu_to_be64   __cpu_to_be64
 
#define be64_to_cpu   __be64_to_cpu
 
#define cpu_to_be32   __cpu_to_be32
 
#define be32_to_cpu   __be32_to_cpu
 
#define cpu_to_be16   __cpu_to_be16
 
#define be16_to_cpu   __be16_to_cpu
 
#define cpu_to_le64p   __cpu_to_le64p
 
#define le64_to_cpup   __le64_to_cpup
 
#define cpu_to_le32p   __cpu_to_le32p
 
#define le32_to_cpup   __le32_to_cpup
 
#define cpu_to_le16p   __cpu_to_le16p
 
#define le16_to_cpup   __le16_to_cpup
 
#define cpu_to_be64p   __cpu_to_be64p
 
#define be64_to_cpup   __be64_to_cpup
 
#define cpu_to_be32p   __cpu_to_be32p
 
#define be32_to_cpup   __be32_to_cpup
 
#define cpu_to_be16p   __cpu_to_be16p
 
#define be16_to_cpup   __be16_to_cpup
 
#define cpu_to_le64s   __cpu_to_le64s
 
#define le64_to_cpus   __le64_to_cpus
 
#define cpu_to_le32s   __cpu_to_le32s
 
#define le32_to_cpus   __le32_to_cpus
 
#define cpu_to_le16s   __cpu_to_le16s
 
#define le16_to_cpus   __le16_to_cpus
 
#define cpu_to_be64s   __cpu_to_be64s
 
#define be64_to_cpus   __be64_to_cpus
 
#define cpu_to_be32s   __cpu_to_be32s
 
#define be32_to_cpus   __be32_to_cpus
 
#define cpu_to_be16s   __cpu_to_be16s
 
#define be16_to_cpus   __be16_to_cpus
 
#define ntohl(x)
 
#define ntohs(x)
 
#define htonl(x)   ntohl(x)
 
#define htons(x)   ntohs(x)
 
#define KERN_EMERG   "<0>" /* system is unusable */
 
#define KERN_ALERT   "<1>" /* action must be taken immediately */
 
#define KERN_CRIT   "<2>" /* critical conditions */
 
#define KERN_ERR   "<3>" /* error conditions */
 
#define KERN_WARNING   "<4>" /* warning conditions */
 
#define KERN_NOTICE   "<5>" /* normal but significant condition */
 
#define KERN_INFO   "<6>" /* informational */
 
#define KERN_DEBUG   "<7>" /* debug-level messages */
 
#define printk   DbgPrint
 
#define MAX_ERRNO   4095
 
#define IS_ERR_VALUE(x)   ((x) >= (unsigned long)-MAX_ERRNO)
 
#define BUG_ON(c)   assert(!(c))
 
#define WARN_ON(c)   BUG_ON(c)
 
#define likely
 
#define unlikely
 
#define __init
 
#define __exit
 
#define THIS_MODULE   NULL
 
#define MODULE_LICENSE(x)
 
#define MODULE_ALIAS_NLS(x)
 
#define EXPORT_SYMBOL(x)
 
#define try_module_get(x)   (TRUE)
 
#define module_put(x)
 
#define module_init(X)   int __init module_##X() {return X();}
 
#define module_exit(X)   void __exit module_##X() {X();}
 
#define DECLARE_INIT(X)   int __init module_##X(void)
 
#define DECLARE_EXIT(X)   void __exit module_##X(void)
 
#define LOAD_MODULE(X)
 
#define UNLOAD_MODULE(X)
 
#define LOAD_NLS   LOAD_MODULE
 
#define UNLOAD_NLS   UNLOAD_MODULE
 
#define spin_lock_init(sl)   KeInitializeSpinLock(&((sl)->lock))
 
#define spin_lock(sl)   KeAcquireSpinLock(&((sl)->lock), &((sl)->irql))
 
#define spin_unlock(sl)   KeReleaseSpinLock(&((sl)->lock), (sl)->irql)
 
#define spin_lock_irqsave(sl, flags)   do {spin_lock(sl); flags=(sl)->irql;} while(0)
 
#define spin_unlock_irqrestore(sl, flags)   do {ASSERT((KIRQL)(flags)==(sl)->irql); spin_unlock(sl);} while(0)
 
#define assert_spin_locked(x)   do {} while(0)
 
#define TASK_INTERRUPTIBLE   1
 
#define TASK_UNINTERRUPTIBLE   2
 
#define yield()   do {} while(0)
 
#define might_sleep()   do {} while(0)
 
#define mutex_init(x)   ExInitializeFastMutex(&((x)->lock))
 
#define mutex_lock(x)   ExAcquireFastMutex(&((x)->lock))
 
#define mutex_unlock(x)   ExReleaseFastMutex(&((x)->lock))
 
#define WQ_FLAG_EXCLUSIVE   0x01
 
#define WQ_FLAG_AUTO_REMOVAL   0x02
 
#define DEFINE_WAIT(name)   wait_queue_t name = (PVOID)wait_queue_create();
 
#define is_sync_wait(wait)   (TRUE)
 
#define set_current_state(state)   do {} while(0)
 
#define __set_current_state(state)   do {} while(0)
 
#define page_address(_page)   ((char*)_page + sizeof(struct page))
 
#define get_page(p)   atomic_inc(&(p)->count)
 
#define PG_locked   0 /* Page is locked. Don't touch. */
 
#define PG_error   1
 
#define PG_referenced   2
 
#define PG_uptodate   3
 
#define PG_dirty   4
 
#define PG_unused   5
 
#define PG_lru   6
 
#define PG_active   7
 
#define PG_slab   8
 
#define PG_skip   10
 
#define PG_highmem   11
 
#define PG_checked   12 /* kill me in 2.5.<early>. */
 
#define PG_arch_1   13
 
#define PG_reserved   14
 
#define PG_launder   15 /* written out by VM pressure.. */
 
#define PG_fs_1   16 /* Filesystem specific */
 
#define arch_set_page_uptodate(page)
 
#define UnlockPage(page)   unlock_page(page)
 
#define Page_Uptodate(page)   test_bit(PG_uptodate, &(page)->flags)
 
#define SetPageUptodate(page)
 
#define ClearPageUptodate(page)   clear_bit(PG_uptodate, &(page)->flags)
 
#define PageDirty(page)   test_bit(PG_dirty, &(page)->flags)
 
#define SetPageDirty(page)   set_bit(PG_dirty, &(page)->flags)
 
#define ClearPageDirty(page)   clear_bit(PG_dirty, &(page)->flags)
 
#define PageLocked(page)   test_bit(PG_locked, &(page)->flags)
 
#define LockPage(page)   set_bit(PG_locked, &(page)->flags)
 
#define TryLockPage(page)   test_and_set_bit(PG_locked, &(page)->flags)
 
#define PageChecked(page)   test_bit(PG_checked, &(page)->flags)
 
#define SetPageChecked(page)   set_bit(PG_checked, &(page)->flags)
 
#define ClearPageChecked(page)   clear_bit(PG_checked, &(page)->flags)
 
#define PageLaunder(page)   test_bit(PG_launder, &(page)->flags)
 
#define SetPageLaunder(page)   set_bit(PG_launder, &(page)->flags)
 
#define ClearPageLaunder(page)   clear_bit(PG_launder, &(page)->flags)
 
#define ClearPageArch1(page)   clear_bit(PG_arch_1, &(page)->flags)
 
#define PageError(page)   test_bit(PG_error, &(page)->flags)
 
#define SetPageError(page)   set_bit(PG_error, &(page)->flags)
 
#define ClearPageError(page)   clear_bit(PG_error, &(page)->flags)
 
#define PageReferenced(page)   test_bit(PG_referenced, &(page)->flags)
 
#define SetPageReferenced(page)   set_bit(PG_referenced, &(page)->flags)
 
#define ClearPageReferenced(page)   clear_bit(PG_referenced, &(page)->flags)
 
#define PageActive(page)   test_bit(PG_active, &(page)->flags)
 
#define SetPageActive(page)   set_bit(PG_active, &(page)->flags)
 
#define ClearPageActive(page)   clear_bit(PG_active, &(page)->flags)
 
#define __get_free_page(gfp_mask)   __get_free_pages((gfp_mask),0)
 
#define __free_page(page)   __free_pages((page), 0)
 
#define free_page(addr)   free_pages((addr),0)
 
#define __GFP_HIGHMEM   0x02
 
#define __GFP_WAIT   0x10 /* Can wait and reschedule? */
 
#define __GFP_HIGH   0x20 /* Should access emergency pools? */
 
#define __GFP_IO   0x40 /* Can start low memory physical IO? */
 
#define __GFP_HIGHIO   0x80 /* Can start high mem physical IO? */
 
#define __GFP_FS   0x100 /* Can call down to low-level FS? */
 
#define GFP_ATOMIC   (__GFP_HIGH)
 
#define GFP_USER   ( __GFP_WAIT | __GFP_IO | __GFP_HIGHIO | __GFP_FS)
 
#define GFP_HIGHUSER   ( __GFP_WAIT | __GFP_IO | __GFP_HIGHIO | __GFP_FS | __GFP_HIGHMEM)
 
#define GFP_KERNEL   (__GFP_HIGH | __GFP_WAIT | __GFP_IO | __GFP_HIGHIO | __GFP_FS)
 
#define GFP_NOFS   0
 
#define __GFP_NOFAIL   0
 
#define KM_USER0   0
 
#define PAGE_CACHE_SIZE   (PAGE_SIZE)
 
#define PAGE_CACHE_SHIFT   (12)
 
#define MAX_BUF_PER_PAGE   (PAGE_CACHE_SIZE / 512)
 
#define BUFFER_FNS(bit, name)
 
#define TAS_BUFFER_FNS(bit, name)
 
#define bh_offset(bh)   ((unsigned long)(bh)->b_data & ~PAGE_MASK)
 
#define touch_buffer(bh)   mark_page_accessed(bh->b_page)
 
#define page_buffers(page)
 
#define page_has_buffers(page)   PagePrivate(page)
 
#define NLS_MAX_CHARSET_SIZE   6 /* for UTF-8 */
 
#define HZ   (100)
 
#define jiffies   JIFFIES()
 
#define ExFreePoolWithTag(_P, _T)   ExFreePool(_P)
 
#define kmalloc(size, gfp)   Ext2AllocatePool(NonPagedPool, size, 'JBDM')
 
#define kfree(p)   Ext2FreePool(p, 'JBDM')
 
#define SLAB_HWCACHE_ALIGN   0x00002000U /* align objs on a h/w cache lines */
 
#define SLAB_KERNEL   0x00000001U
 
#define SLAB_TEMPORARY   0x00000002U
 
#define BDEVNAME_SIZE   32 /* Largest string for a blockdev identifier */
 
#define RW_MASK   1
 
#define RWA_MASK   2
 
#define READ   0
 
#define WRITE   1
 
#define READA   2 /* read-ahead - don't block if no resources */
 
#define SWRITE   3 /* for ll_rw_block() - wait for buffer lock */
 
#define READ_SYNC   (READ | (1 << BIO_RW_SYNC))
 
#define READ_META   (READ | (1 << BIO_RW_META))
 
#define WRITE_SYNC   (WRITE | (1 << BIO_RW_SYNC))
 
#define WRITE_BARRIER   ((1 << BIO_RW) | (1 << BIO_RW_BARRIER))
 
#define typecheck(x, y)   (TRUE)
 
#define time_after(a, b)
 
#define time_before(a, b)   time_after(b,a)
 
#define time_after_eq(a, b)
 
#define time_before_eq(a, b)   time_after_eq(b,a)
 
#define time_in_range(a, b, c)
 
#define smp_rmb()   do {}while(0)
 
#define do_div(n, b)   do_div64(&(n), (__u64)b)
 

Typedefs

typedef struct _spinlock_t spinlock_t
 
typedef struct mutex mutex_t
 
typedef PVOID wait_queue_t
 
typedef struct __wait_queue_head wait_queue_head_t
 
typedef struct kmem_cache kmem_cache_t
 
typedef struct page mem_map_t
 
typedef voidbh_end_io_t )(struct buffer_head *bh, int uptodate)
 
typedef GUID UUID
 
typedef void(* kmem_cache_cb_t )(void *, kmem_cache_t *, unsigned long)
 

Enumerations

enum  bh_state_bits {
  BH_Uptodate, BH_Dirty, BH_Verified, BH_Lock,
  BH_Req, BH_Uptodate_Lock, BH_Mapped, BH_New,
  BH_Async_Read, BH_Async_Write, BH_Delay, BH_Boundary,
  BH_Write_EIO, BH_Ordered, BH_Eopnotsupp, BH_Unwritten,
  BH_PrivateStart
}
 

Functions

USHORT FASTCALL RtlUshortByteSwap (IN USHORT Source)
 
ULONG FASTCALL RtlUlongByteSwap (IN ULONG Source)
 
ULONGLONG FASTCALL RtlUlonglongByteSwap (IN ULONGLONG Source)
 
static void le16_add_cpu (__le16 *var, u16 val)
 
static void le32_add_cpu (__le32 *var, u32 val)
 
static void le64_add_cpu (__le64 *var, u64 val)
 
static voidERR_PTR (long error)
 
static long PTR_ERR (const void *ptr)
 
static long IS_ERR (const void *ptr)
 
static int spin_needbreak (spinlock_t *lock)
 
static int set_bit (int nr, volatile unsigned long *addr)
 
static int clear_bit (int nr, volatile unsigned long *addr)
 
static int test_and_clear_bit (int nr, volatile unsigned long *addr)
 
static int test_bit (int nr, volatile const unsigned long *addr)
 
static int test_and_set_bit (int nr, volatile unsigned long *addr)
 
static int cond_resched ()
 
static int need_resched ()
 
void init_waitqueue_head (wait_queue_head_t *q)
 
int wake_up (wait_queue_head_t *queue)
 
struct __wait_queuewait_queue_create ()
 
void wait_queue_destroy (struct __wait_queue *)
 
void prepare_to_wait (wait_queue_head_t *q, wait_queue_t *wait, int state)
 
void prepare_to_wait_exclusive (wait_queue_head_t *q, wait_queue_t *wait, int state)
 
void finish_wait (wait_queue_head_t *q, wait_queue_t *wait)
 
int autoremove_wake_function (wait_queue_t *wait, unsigned mode, int sync, void *key)
 
int wake_bit_function (wait_queue_t *wait, unsigned mode, int sync, void *key)
 
unsigned long __get_free_pages (unsigned int gfp_mask, unsigned int order)
 
void __free_pages (struct page *page, unsigned int order)
 
void free_pages (unsigned long addr, unsigned int order)
 
void truncate_inode_pages (struct address_space *, loff_t)
 
void mark_buffer_dirty (struct buffer_head *bh)
 
void init_buffer (struct buffer_head *, bh_end_io_t *, void *)
 
void set_bh_page (struct buffer_head *bh, struct page *page, unsigned long offset)
 
int try_to_free_buffers (struct page *)
 
struct buffer_headalloc_page_buffers (struct page *page, unsigned long size, int retry)
 
void create_empty_buffers (struct page *, unsigned long, unsigned long b_state)
 
void mark_buffer_dirty_inode (struct buffer_head *bh, struct inode *inode)
 
int inode_has_buffers (struct inode *)
 
void invalidate_inode_buffers (struct inode *)
 
int remove_inode_buffers (struct inode *inode)
 
int sync_mapping_buffers (struct address_space *mapping)
 
void unmap_underlying_metadata (struct block_device *bdev, sector_t block)
 
void mark_buffer_async_write (struct buffer_head *bh)
 
void invalidate_bdev (struct block_device *)
 
int sync_blockdev (struct block_device *bdev)
 
void __wait_on_buffer (struct buffer_head *)
 
wait_queue_head_tbh_waitq_head (struct buffer_head *bh)
 
int fsync_bdev (struct block_device *)
 
struct super_blockfreeze_bdev (struct block_device *)
 
void thaw_bdev (struct block_device *, struct super_block *)
 
int fsync_super (struct super_block *)
 
int fsync_no_super (struct block_device *)
 
struct buffer_head__find_get_block (struct block_device *bdev, sector_t block, unsigned long size)
 
struct buffer_headget_block_bh (struct block_device *bdev, sector_t block, unsigned long size, int zero)
 
struct buffer_head__getblk (struct block_device *bdev, sector_t block, unsigned long size)
 
void __brelse (struct buffer_head *)
 
void __bforget (struct buffer_head *)
 
void __breadahead (struct block_device *, sector_t block, unsigned int size)
 
struct buffer_head__bread (struct block_device *, sector_t block, unsigned size)
 
void invalidate_bh_lrus (void)
 
struct buffer_headalloc_buffer_head (gfp_t gfp_flags)
 
void free_buffer_head (struct buffer_head *bh)
 
void unlock_buffer (struct buffer_head *bh)
 
void __lock_buffer (struct buffer_head *bh)
 
void ll_rw_block (int, int, struct buffer_head *bh[])
 
int sync_dirty_buffer (struct buffer_head *bh)
 
int submit_bh (int, struct buffer_head *)
 
void write_boundary_block (struct block_device *bdev, sector_t bblock, unsigned blocksize)
 
int bh_uptodate_or_lock (struct buffer_head *bh)
 
int bh_submit_read (struct buffer_head *bh)
 
struct buffer_headextents_bread (struct super_block *sb, sector_t block)
 
struct buffer_headextents_bwrite (struct super_block *sb, sector_t block)
 
void extents_mark_buffer_dirty (struct buffer_head *bh)
 
void extents_brelse (struct buffer_head *bh)
 
void block_invalidatepage (struct page *page, unsigned long offset)
 
void page_zero_new_buffers (struct page *page, unsigned from, unsigned to)
 
int block_commit_write (struct page *page, unsigned from, unsigned to)
 
void block_sync_page (struct page *)
 
void buffer_init (void)
 
static void get_bh (struct buffer_head *bh)
 
static void put_bh (struct buffer_head *bh)
 
static void brelse (struct buffer_head *bh)
 
static void fini_bh (struct buffer_head **bh)
 
static void bforget (struct buffer_head *bh)
 
static struct buffer_headsb_getblk (struct super_block *sb, sector_t block)
 
static struct buffer_headsb_getblk_zero (struct super_block *sb, sector_t block)
 
static struct buffer_headsb_bread (struct super_block *sb, sector_t block)
 
static struct buffer_headsb_find_get_block (struct super_block *sb, sector_t block)
 
static void map_bh (struct buffer_head *bh, struct super_block *sb, sector_t block)
 
static void wait_on_buffer (struct buffer_head *bh)
 
static void lock_buffer (struct buffer_head *bh)
 
int __set_page_dirty_buffers (struct page *page)
 
int register_nls (struct nls_table *)
 
int unregister_nls (struct nls_table *)
 
struct nls_tableload_nls (char *)
 
void unload_nls (struct nls_table *)
 
struct nls_tableload_nls_default (void)
 
int utf8_mbtowc (wchar_t *, const __u8 *, int)
 
int utf8_mbstowcs (wchar_t *, const __u8 *, int)
 
int utf8_wctomb (__u8 *, wchar_t, int)
 
int utf8_wcstombs (__u8 *, const wchar_t *, int)
 
static __u32 JIFFIES ()
 
NTKERNELAPI NTSTATUS ExUuidCreate (OUT UUID *Uuid)
 
NTKERNELAPI PVOID NTAPI ExAllocatePoolWithTag (IN POOL_TYPE PoolType, IN SIZE_T NumberOfBytes, IN ULONG Tag)
 
PVOID Ext2AllocatePool (IN POOL_TYPE PoolType, IN SIZE_T NumberOfBytes, IN ULONG Tag)
 
VOID Ext2FreePool (IN PVOID P, IN ULONG Tag)
 
voidkzalloc (int size, int flags)
 
kmem_cache_tkmem_cache_create (const char *name, size_t size, size_t offset, unsigned long flags, kmem_cache_cb_t ctor)
 
voidkmem_cache_alloc (kmem_cache_t *kc, int flags)
 
void kmem_cache_free (kmem_cache_t *kc, void *p)
 
int kmem_cache_destroy (kmem_cache_t *kc)
 
static __u32 do_div64 (__u64 *n, __u64 b)
 

Variables

struct task_structcurrent
 
int buffer_heads_over_limit
 

Macro Definition Documentation

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

Definition at line 117 of file module.h.

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

Definition at line 129 of file module.h.

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

Definition at line 141 of file module.h.

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

Definition at line 115 of file module.h.

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

Definition at line 127 of file module.h.

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

Definition at line 139 of file module.h.

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

Definition at line 113 of file module.h.

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

Definition at line 125 of file module.h.

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

Definition at line 137 of file module.h.

#define __constant_be16_to_cpu (   x)    __constant_swab16((x))

Definition at line 105 of file module.h.

#define __constant_be32_to_cpu (   x)    __constant_swab32((x))

Definition at line 103 of file module.h.

#define __constant_be64_to_cpu (   x)    __constant_swab64((x))

Definition at line 101 of file module.h.

#define __constant_cpu_to_be16 (   x)    __constant_swab16((x))

Definition at line 104 of file module.h.

#define __constant_cpu_to_be32 (   x)    __constant_swab32((x))

Definition at line 102 of file module.h.

#define __constant_cpu_to_be64 (   x)    __constant_swab64((x))

Definition at line 100 of file module.h.

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

Definition at line 98 of file module.h.

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

Definition at line 96 of file module.h.

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

Definition at line 94 of file module.h.

#define __constant_htonl (   x)    __constant_swab32((x))

Definition at line 90 of file module.h.

Referenced by tcp_build_and_update_options(), and tcp_syn_build_options().

#define __constant_htons (   x)    __constant_swab16((x))

Definition at line 92 of file module.h.

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

Definition at line 99 of file module.h.

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

Definition at line 97 of file module.h.

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

Definition at line 95 of file module.h.

#define __constant_ntohl (   x)    __constant_swab32((x))

Definition at line 91 of file module.h.

#define __constant_ntohs (   x)    __constant_swab16((x))

Definition at line 93 of file module.h.

#define __constant_swab32   __swab32

Definition at line 87 of file module.h.

#define __constant_swab64   __swab64

Definition at line 88 of file module.h.

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

Definition at line 116 of file module.h.

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

Definition at line 128 of file module.h.

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

Definition at line 140 of file module.h.

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

Definition at line 114 of file module.h.

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

Definition at line 126 of file module.h.

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

Definition at line 138 of file module.h.

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

Definition at line 112 of file module.h.

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

Definition at line 124 of file module.h.

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

Definition at line 136 of file module.h.

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

Definition at line 110 of file module.h.

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

Definition at line 122 of file module.h.

#define __cpu_to_le16s (   x)    ((__s16)(x))

Definition at line 134 of file module.h.

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

Definition at line 108 of file module.h.

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

Definition at line 120 of file module.h.

#define __cpu_to_le32s (   x)    ((__s32)(x))

Definition at line 132 of file module.h.

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

Definition at line 106 of file module.h.

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

Definition at line 118 of file module.h.

#define __cpu_to_le64s (   x)    ((__s64)(x))

Definition at line 130 of file module.h.

#define __exit

Definition at line 265 of file module.h.

#define __free_page (   page)    __free_pages((page), 0)

Definition at line 640 of file module.h.

#define __get_free_page (   gfp_mask)    __get_free_pages((gfp_mask),0)

Definition at line 634 of file module.h.

#define __GFP_FS   0x100 /* Can call down to low-level FS? */

Definition at line 653 of file module.h.

#define __GFP_HIGH   0x20 /* Should access emergency pools? */

Definition at line 650 of file module.h.

#define __GFP_HIGHIO   0x80 /* Can start high mem physical IO? */

Definition at line 652 of file module.h.

#define __GFP_HIGHMEM   0x02

Definition at line 647 of file module.h.

#define __GFP_IO   0x40 /* Can start low memory physical IO? */

Definition at line 651 of file module.h.

#define __GFP_NOFAIL   0

Definition at line 660 of file module.h.

#define __GFP_WAIT   0x10 /* Can wait and reschedule? */

Definition at line 649 of file module.h.

#define __init

Definition at line 264 of file module.h.

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

Definition at line 111 of file module.h.

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

Definition at line 123 of file module.h.

#define __le16_to_cpus (   x)    ((__s16)(x))

Definition at line 135 of file module.h.

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

Definition at line 109 of file module.h.

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

Definition at line 121 of file module.h.

#define __le32_to_cpus (   x)    ((__s32)(x))

Definition at line 133 of file module.h.

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

Definition at line 107 of file module.h.

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

Definition at line 119 of file module.h.

#define __le64_to_cpus (   x)    ((__s64)(x))

Definition at line 131 of file module.h.

#define __set_current_state (   state)    do {} while(0)

Definition at line 496 of file module.h.

Referenced by finish_wait().

#define __swab16 (   x)    RtlUshortByteSwap(x)

Definition at line 83 of file module.h.

#define __swab32 (   x)    RtlUlongByteSwap(x)

Definition at line 84 of file module.h.

#define __swab64 (   x)    RtlUlonglongByteSwap(x)

Definition at line 85 of file module.h.

#define _WIN2K_TARGET_   1

Definition at line 23 of file module.h.

Referenced by DriverEntry().

#define arch_set_page_uptodate (   page)

Definition at line 595 of file module.h.

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

Definition at line 309 of file module.h.

#define BDEVNAME_SIZE   32 /* Largest string for a blockdev identifier */

Definition at line 1154 of file module.h.

#define be16_to_cpu   __be16_to_cpu

Definition at line 157 of file module.h.

#define be16_to_cpup   __be16_to_cpup

Definition at line 169 of file module.h.

#define be16_to_cpus   __be16_to_cpus

Definition at line 181 of file module.h.

#define be32_to_cpup   __be32_to_cpup

Definition at line 167 of file module.h.

#define be32_to_cpus   __be32_to_cpus

Definition at line 179 of file module.h.

#define be64_to_cpu   __be64_to_cpu

Definition at line 153 of file module.h.

#define be64_to_cpup   __be64_to_cpup

Definition at line 165 of file module.h.

#define be64_to_cpus   __be64_to_cpus

Definition at line 177 of file module.h.

#define bh_offset (   bh)    ((unsigned long)(bh)->b_data & ~PAGE_MASK)

Definition at line 793 of file module.h.

#define BUFFER_FNS (   bit,
  name 
)
Value:
static inline void set_buffer_##name(struct buffer_head *bh) \
{ \
set_bit(BH_##bit, &(bh)->b_state); \
} \
static inline void clear_buffer_##name(struct buffer_head *bh) \
{ \
clear_bit(BH_##bit, &(bh)->b_state); \
} \
static inline int buffer_##name(const struct buffer_head *bh) \
{ \
return test_bit(BH_##bit, &(bh)->b_state); \
}
static int clear_bit(int nr, volatile unsigned long *addr)
Definition: module.h:357
GLuint const GLchar * name
Definition: glext.h:6031
return(0)
static int test_bit(int nr, volatile const unsigned long *addr)
Definition: module.h:381
static int set_bit(int nr, volatile unsigned long *addr)
Definition: module.h:338

Definition at line 742 of file module.h.

#define ClearPageActive (   page)    clear_bit(PG_active, &(page)->flags)

Definition at line 630 of file module.h.

#define ClearPageArch1 (   page)    clear_bit(PG_arch_1, &(page)->flags)

Definition at line 619 of file module.h.

#define ClearPageChecked (   page)    clear_bit(PG_checked, &(page)->flags)

Definition at line 615 of file module.h.

#define ClearPageDirty (   page)    clear_bit(PG_dirty, &(page)->flags)

Definition at line 609 of file module.h.

#define ClearPageError (   page)    clear_bit(PG_error, &(page)->flags)

Definition at line 623 of file module.h.

#define ClearPageLaunder (   page)    clear_bit(PG_launder, &(page)->flags)

Definition at line 618 of file module.h.

#define ClearPageReferenced (   page)    clear_bit(PG_referenced, &(page)->flags)

Definition at line 626 of file module.h.

#define ClearPageUptodate (   page)    clear_bit(PG_uptodate, &(page)->flags)

Definition at line 606 of file module.h.

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

Definition at line 33 of file module.h.

#define cpu_to_be16   __cpu_to_be16

Definition at line 156 of file module.h.

#define cpu_to_be16p   __cpu_to_be16p

Definition at line 168 of file module.h.

#define cpu_to_be16s   __cpu_to_be16s

Definition at line 180 of file module.h.

#define cpu_to_be32p   __cpu_to_be32p

Definition at line 166 of file module.h.

#define cpu_to_be32s   __cpu_to_be32s

Definition at line 178 of file module.h.

#define cpu_to_be64   __cpu_to_be64

Definition at line 152 of file module.h.

#define cpu_to_be64p   __cpu_to_be64p

Definition at line 164 of file module.h.

#define cpu_to_be64s   __cpu_to_be64s

Definition at line 176 of file module.h.

#define cpu_to_le16p   __cpu_to_le16p

Definition at line 162 of file module.h.

#define cpu_to_le16s   __cpu_to_le16s

Definition at line 174 of file module.h.

#define cpu_to_le32p   __cpu_to_le32p

Definition at line 160 of file module.h.

#define cpu_to_le32s   __cpu_to_le32s

Definition at line 172 of file module.h.

#define cpu_to_le64   __cpu_to_le64

Definition at line 144 of file module.h.

Referenced by le64_add_cpu().

#define cpu_to_le64p   __cpu_to_le64p

Definition at line 158 of file module.h.

#define cpu_to_le64s   __cpu_to_le64s

Definition at line 170 of file module.h.

#define DECLARE_EXIT (   X)    void __exit module_##X(void)

Definition at line 280 of file module.h.

#define DECLARE_INIT (   X)    int __init module_##X(void)

Definition at line 279 of file module.h.

#define DEFINE_WAIT (   name)    wait_queue_t name = (PVOID)wait_queue_create();

Definition at line 473 of file module.h.

#define do_div (   n,
  b 
)    do_div64(&(n), (__u64)b)

Definition at line 1218 of file module.h.

Referenced by ext4_get_group_no_and_offset().

#define ExFreePoolWithTag (   _P,
  _T 
)    ExFreePool(_P)

Definition at line 1097 of file module.h.

Referenced by __drv_allocatesMem(), _Function_class_(), _IRQL_requires_max_(), _RxFreePool(), _RxFreePoolWithTag(), _Success_(), acpi_bus_add(), acpi_bus_receive_event(), acpi_bus_remove(), acpi_button_add(), acpi_button_remove(), acpi_system_remove(), AcpiOsDeleteLock(), AcpiOsDeleteMutex(), AcpiOsDeleteSemaphore(), AcpiOsFree(), AcpiRegQueryValue(), AddrFileFree(), AllocatePacketWithBuffer(), AppendUnicodeString(), ApphelpFree(), BatteryClassUnload(), BroadcastOpen(), BuildAndSubmitIrp(), BuildWindowStationNameList(), Bus_AddDevice(), Bus_DestroyPdo(), Bus_FDO_PnP(), Bus_PDO_EvalMethod(), Bus_PDO_QueryResourceRequirements(), Bus_PDO_QueryResources(), CdfsAttachFCBToFileObject(), CdfsCloseFile(), CdfsDestroyFCB(), CdfsFCBInitializeCache(), CdfsGetVolumeData(), CdfsMountVolume(), CdfsOpenFile(), CdfsReadFile(), CheckDirectorySecurity__(), CheckKeySecurity__(), ChewWorkItem(), CleanupFontEntry(), CmInitSystem1(), CmpAddToHiveFileList(), CmpCreateRegistryRoot(), CmpDestroyHive(), CmpGetRegistryPath(), CmpHiveRootSecurityDescriptor(), CmpInitializeHardwareConfiguration(), CmpInitializeHive(), CmpInitializeHiveList(), CmpInitializeMachineDependentConfiguration(), CmpInitializeSystemHive(), CmpOpenHiveFiles(), CmpQueryKeyName(), CmpRemoveFromHiveFileList(), CmUnloadKey(), CmUnRegisterCallback(), co_CallHook(), co_EVENT_CallEvents(), co_HOOK_CallHooks(), co_IntCallDebugHook(), co_IntCallLowLevelHook(), co_IntPaintWindows(), co_IntSendActivateMessages(), co_IntSendMessageTimeout(), co_IntShellHookNotify(), co_UserCreateWindowEx(), co_UserDestroyWindow(), co_UserFreeWindow(), co_WinPosSearchChildren(), co_WinPosSetWindowPos(), CommonForwardedIoCompletionRoutine(), CompareFileContents(), ConnectionFree(), ControlChannelFree(), CopyMsgToKernelMem(), CreateClassDeviceObject(), CUSBDevice::CreateConfigurationDescriptor(), CreateNewVolumeName(), CreateNoDriveLetterEntry(), CreateRedirectedFile(), DbgkpFreeDebugEvent(), DbgkpQueueMessage(), DceAllocDCE(), DceFreeDCE(), DefWndSetHotKey(), DeinitializePacket(), DestroyPortDriver(), DGReceiveComplete(), DGReceiveDatagram(), DGRemoveIRP(), DIB_FreeConvertedBitmapInfo(), DispTdiQueryInformationEx(), DispTdiQueryInformationExComplete(), DispTdiQueryIpHwAddress(), DrawTextExWorker(), DriverEntry(), DxDdCleanupDxGraphics(), EngDeleteEvent(), EngDeletePath(), EngDeleteSemaphore(), EngFreeMem(), EngMapEvent(), EngpRegisterGraphicsDevice(), EngUnmapEvent(), EnumerateDevices(), EnumerateSubkey(), ErrorHandlerWorkItemRoutine(), ExDeleteResourceLite(), ExeFmtpCreateImageSection(), ExeFmtpReadFile(), ExFreeCallBack(), ExLockUserBuffer(), ExpAllocateExclusiveWaiterEvent(), ExpAllocateHandleTable(), ExpAllocateSharedWaiterSemaphore(), ExpDeleteProfile(), ExpExpandResourceOwnerTable(), ExpFreeHandleTable(), ExpFreeTablePagedPool(), ExpInitNls(), ExRegisterCallback(), Ext2CheckDismount(), Ext2DestroyVcb(), Ext2FreePool(), ExUnlockUserBuffer(), ExUnregisterCallback(), FATAddEntry(), FdoQueryBusRelations(), FileOpenAddress(), finalizeFlood(), FindBestFontFromList(), FindCloseAttribute(), FindDeviceDescForAdapter(), FltpEnumerateFileSystemVolumes(), FltpFastIoDetachDeviceWorker(), FltpFreeUnicodeString(), FltpGetObjectName(), FltpReallocateUnicodeString(), FltRegisterFilter(), FltUnregisterFilter(), FontFamilyFillInfo(), free(), FreeAdapter(), FreeCircularBuffer(), FreeCurIconObject(), FreeFIB(), FreeFunction(), FreeIF(), FreeInitializedSids(), FreeIPDR(), FreeItem(), FreeMemoryManagement(), FreeNdisPacket(), FsRtlCancelNotify(), FsRtlDeregisterUncProvider(), FsRtlFastUnlockSingle(), FsRtlInsertPerFileObjectContext(), FsRtlIsDbcsInExpression(), FsRtlIsNameInExpressionPrivate(), FsRtlNotifyCleanup(), FsRtlNotifyCompleteIrp(), FsRtlNotifyFilterReportChange(), FsRtlNotifyUninitializeSync(), FsRtlpRegisterProviderWithMUP(), FsRtlPTeardownPerFileObjectContexts(), FsRtlRegisterUncProvider(), FsRtlStackOverflowRead(), FsRtlUninitializeBaseMcb(), FsRtlUninitializeFileLock(), FstubAllocateDiskInformation(), FstubFreeDiskInformation(), FstubGetDiskGeometry(), FstubReadHeaderEFI(), FstubReadPartitionTableEFI(), FstubVerifyPartitionTableEFI(), FstubWritePartitionTableMBR(), ftGdiGetGlyphOutline(), ftGdiGlyphCacheSet(), GDIOBJ_vFreeObject(), GetNtfsFileRecord(), GetPacketTypeFromNdisPacket(), GetProcessorInformation(), GetVolumeBitmap(), GreGetKerningPairs(), HaliRegisterBusHandler(), HalpGetFullGeometry(), HalpInitializePciBus(), HalpInitializePciStubs(), HalpQueryAcpiResourceRequirements(), HalpQueryResources(), HalPutScatterGatherList(), handle_internal_message(), CHubController::HandleGetDescriptor(), Hid_DisableConfiguration(), Hid_GetDescriptor(), Hid_GetProtocol(), Hid_PnpStart(), Hid_SelectConfiguration(), Hid_SetIdle(), HidClass_BuildIrp(), HidClass_Close(), HidClass_ReadCompleteIrp(), HidClassPDO_CreatePDO(), HidClassPDO_HandleQueryDeviceId(), HidClassPDO_HandleQueryHardwareId(), HidUsb_AbortPipe(), HidUsb_GetReportDescriptor(), HidUsb_ReadReportCompletion(), HidUsb_ResetInterruptPipe(), HidUsb_ResetWorkerRoutine(), i8042InitializeHwHacks(), i8042KbdInternalDeviceControl(), i8042MouInternalDeviceControl(), i8042SendHookWorkItem(), IncreaseCircularBufferSize(), InfoTdiQueryGetAddrTable(), InfoTdiQueryGetArptableMIB(), InfoTdiQueryGetInterfaceMIB(), InfoTdiQueryGetRouteTable(), InitializeProvider(), InitRootHub(), InitThreadCallback(), IntAddFormatedData(), IntCbFreeMemory(), IntChildWindowFromPointEx(), IntCleanupThreadCallbacks(), IntClientShutdown(), IntCopyRegistryKey(), IntCopyRegistryValue(), IntCreateRegistryPath(), IntDdeGetMessageHook(), IntDdePostMessageHook(), IntDeactivateWindow(), IntDeferWindowPos(), IntDeRegisterShellHookWindow(), IntDestroyScrollBars(), IntEndDeferWindowPosEx(), InternalReadNonResidentAttributes(), IntFindWindow(), IntFreeHook(), IntGdiCleanupMemEntry(), IntGdiCleanupPrivateFontsForProcess(), IntGdiGetFontResourceInfo(), IntGdiLoadFontsFromMemory(), IntGdiPolyBezier(), IntGdiPolyBezierTo(), IntGdiPolylineTo(), IntGdiRemoveFontMemResource(), IntKeyboardGetIndicatorTrans(), IntLoadSystemFonts(), IntRealChildWindowFromPoint(), IntSafeCopyUnicodeString(), IntSafeCopyUnicodeStringTerminateNULL(), IntSendChildNCPaint(), IntSendDestroyMsg(), IntSetAconData(), IntSetCursorData(), IntShowOwnedPopups(), IoAllocateDriverObjectExtension(), IoConnectInterrupt(), IoDeleteDevice(), IoFreeErrorLogEntry(), IoFreeIrp(), IoFreeMdl(), IopActionInterrogateDeviceStack(), IopCleanupIrp(), IopCreateArcNamesCd(), IopCreateArcNamesDisk(), IopCreateDeviceNode(), IopCreateFile(), IopDeleteDriver(), IopDeleteFile(), IopDereferenceVpbAndFree(), IopDetectResourceConflict(), IopDoNameTransmogrify(), IopFreeDeviceNode(), IopGetParentIdPrefix(), IopInitializeBuiltinDriver(), IopLogWorker(), IopNormalizeImagePath(), IopNotifyPlugPlayNotification(), IopParseDevice(), IopQueryBusDescription(), IopQueryDeviceDescription(), IopQueryNameFile(), IopReportTargetDeviceChangeAsyncWorker(), IopUnloadDriver(), IoQueryDeviceDescription(), IoReadDiskSignature(), IoRegisterPlugPlayNotification(), IoReleaseRemoveLockAndWaitEx(), IoReleaseRemoveLockEx(), IoSetDeviceInterfaceState(), IoShutdownSystem(), IoUnregisterFsRegistrationChange(), IoUnregisterPlugPlayNotification(), IoUnregisterShutdownNotification(), IoVolumeDeviceToDosName(), IPAddressFree(), IPCreateInterface(), IPDestroyInterface(), KbdHid_FreeResources(), KbdHid_StartDevice(), Ke386CallBios(), KeDeregisterNmiCallback(), KeStartProfile(), KmtCleanUsermodeCallbacks(), KmtFreeCallbackResponse(), KmtUserModeCallback(), KspDoReparseForIrp(), LanReceiveWorker(), LANRegisterAdapter(), LanSubmitReceiveWork(), LDEVOBJ_bLoadImage(), LDEVOBJ_pdmiGetModes(), LDEVOBJ_vFreeLDEV(), LDEVOBJ_vUnloadImage(), LdrProcessDriverModule(), CMiniportWaveCMI::loadChannelConfigFromRegistry(), LockFree(), LpcpDestroyPortQueue(), McbMappingFree(), MiAllocateContiguousMemory(), MiAllocatePagesForMdl(), MiBuildImportsForBootDrivers(), MiClearImports(), MiCreateMemoryEvent(), MiCreatePebOrTeb(), MiDereferenceImports(), MiDoPoolCopy(), MiFreeContiguousMemory(), MiInitializeLoadedModuleList(), MiLoadUserSymbols(), MiMapLockedPagesInUserSpace(), MiReleaseProcessReferenceToSessionDataPage(), MiResolveImageReferences(), MiSessionCreateInternal(), MiSnapThunk(), MiUnmapLockedPagesInUserSpace(), MmAddVerifierThunks(), MmAllocateNonCachedMemory(), MmAlterRegion(), MmCallDllInitialize(), MmCreateCacheSection(), MmCreateImageSection(), MmCreateMemoryArea(), MmFinalizeSegment(), MmFreeLoaderBlock(), MmFreeMemoryArea(), MmFreeNonCachedMemory(), MmGetFileNameForAddress(), MmGetFileNameForFileObject(), MmInitializeMemoryLimits(), MmLoadSystemImage(), MmSplitRegion(), MmUnloadSystemImage(), MmUnmapViewOfSegment(), MouHid_FreeResources(), MouHid_StartDevice(), MsfsClose(), MsfsCreate(), MsfsCreateMailslot(), MsfsRead(), MsfsTimeout(), MsfsWrite(), MsqCleanupThreadMsgs(), MupDereferenceKnownPrefix(), MupFreeMasterQueryContext(), MupFreeNode(), MupGetProviderInformation(), MupRerouteOpen(), MyFreePool(), NBCompleteSend(), NBDestroyNeighborsForInterface(), NBFlushPacketQueue(), NBRemoveNeighbor(), NBShutdown(), NBTimeout(), NpCancelWaiter(), NpCommonSetSecurityInfo(), NpCreateNewNamedPipe(), NpInitializeAliases(), NpSetClientProcess(), NpWaitPipe(), NtAddAtom(), NtAllocateVirtualMemory(), NtFindAtom(), NtfsAttachFCBToFileObject(), NtfsCreateFile(), NtfsDirFindFile(), NtfsFCBInitializeCache(), NtfsFindFileAt(), NtfsFindMftRecord(), NtfsGetFreeClusters(), NtfsGetSteamInformation(), NtfsLookupFileAt(), NtfsMakeRootFCB(), NtfsMoonWalkID(), NtfsOpenFileById(), NtfsQueryDirectory(), NtfsReadDisk(), NtfsReadFCBAttribute(), NtfsReadFile(), NtGdiAddFontMemResourceEx(), NtGdiAddFontResourceW(), NtGdiCreateDIBBrush(), NtGdiCreateDIBitmapInternal(), NtGdiDoPalette(), NtGdiExtCreatePen(), NtGdiExtEscape(), NtGdiExtTextOutW(), NtGdiGetCharABCWidthsW(), NtGdiGetCharWidthW(), NtGdiGetDeviceGammaRamp(), NtGdiGetFontFamilyInfo(), NtGdiGetFontResourceInfoInternalW(), NtGdiGetFontUnicodeRanges(), NtGdiGetGlyphIndicesW(), NtGdiGetGlyphOutline(), NtGdiGetKerningPairs(), NtGdiGetOutlineTextMetricsInternalW(), NtGdiGetTextExtentExW(), NtGdiGradientFill(), NtGdiOpenDCW(), NtGdiPolyDraw(), NtGdiPolyPatBlt(), NtGdiPolyPolyDraw(), NtGdiSetDeviceGammaRamp(), NtGdiSetDIBitsToDeviceInternal(), NtGdiStretchDIBitsInternal(), NtGdiTransformPoints(), NtOpenObjectAuditAlarm(), NtOpenThreadTokenEx(), NtPrivilegedServiceAuditAlarm(), NtQueryDirectoryFile(), NtQueryDirectoryObject(), NtQueryInformationFile(), NtQueryInformationProcess(), NtQuerySystemEnvironmentValue(), NtRaiseHardError(), NtSecureConnectPort(), NtSetInformationFile(), NtSetInformationToken(), NtSetValueKey(), NtStartProfile(), NtStopProfile(), NtUnlockFile(), NtUserBuildHwndList(), NtUserCreateAcceleratorTable(), NtUserCreateWindowEx(), NtUserCreateWindowStation(), NtUserEnumDisplayMonitors(), NtUserFindExistingCursorIcon(), NtUserFindWindowEx(), NtUserGetClassInfo(), NtUserGetWOWClass(), NtUserMessageCall(), NtUserMonitorFromRect(), NtUserRegisterWindowMessage(), NtUserResolveDesktop(), NtUserSetCursorIconData(), NtUserSetWindowsHookEx(), NtUserSetWindowStationUser(), NtUserToUnicodeEx(), NtUserUnregisterClass(), NtUserUnregisterHotKey(), NtWaitForMultipleObjects(), ObAssignObjectSecurityDescriptor(), ObDereferenceDeviceMap(), ObfDereferenceDeviceMap(), ObGetObjectSecurity(), ObInitSystem(), ObLogSecurityDescriptor(), ObOpenObjectByName(), ObpCreateDosDevicesDirectory(), ObpCreateGlobalDosDevicesSD(), ObpCreateKernelObjectsSD(), ObpDeallocateObject(), ObpDeleteEntryDirectory(), ObpDereferenceNameInfo(), ObpInsertHandleCount(), ObpLookupObjectName(), OutTableData(), PALETTE_vCleanup(), PATH_add_outline(), PATH_AddFlatBezier(), PATH_DestroyGdiPath(), PATH_ExtTextOut(), PATH_PathToRegion(), PATH_ReserveEntries(), PATH_StrokePath(), PATH_WidenPath(), PATHOBJ_bMoveTo(), PATHOBJ_bPolyBezierTo(), PATHOBJ_bPolyLineTo(), PciAcpiFindRsdt(), PciAssignSlotResources(), PciBuildHackTable(), PciCacheLegacyDeviceRouting(), PciGetAcpiTable(), PciGetFunctionLimits(), PciGetIrqRoutingTableFromRegistry(), PciGetRegistryValue(), PciIsSlotPresentInParentMethod(), PcipGetFunctionLimits(), PciQueryDeviceRelations(), PciQueryDeviceText(), PciQueryForPciBusInterface(), PciQueryTargetDeviceRelations(), PciScanBus(), PDEVOBJ_AllocPDEV(), PDEVOBJ_vDeletePDEV(), PDEVOBJ_vRefreshModeList(), PdoPnpControl(), Phase1InitializationDiscard(), PnpRootCreateDevice(), PnpRootRegisterDevice(), PoolsCorruption(), PoolsTest(), PopAddRemoveSysCapsCallback(), PopGetDope(), PopGetSysButton(), PopProcessShutDownLists(), PoRemoveVolumeDevice(), PoRequestShutdownWait(), PortsShutdown(), ProbeAndCaptureLargeString(), ProbeAndCaptureUnicodeString(), ProbeAndCaptureUnicodeStringOrAtom(), ProtocolStatus(), PsImpersonateClient(), PspDeleteProcess(), PspDeleteVdmObjects(), PspExitThread(), PspSetQuotaLimits(), PspTerminateThreadByPointer(), QSI_DEF(), QueryPathCompletionRoutine(), RamdiskUnload(), ReadIpConfiguration(), ReadRegistryEntries(), ReadVolumeLabel(), REGION_bGrowBufferSize(), REGION_bXformRgn(), REGION_CopyRegion(), REGION_CropRegion(), REGION_FreeStorage(), REGION_PtsToRegion(), REGION_RegionOp(), REGION_SetPolyPolygonRgn(), REGION_vCleanup(), RegQueryValue(), ReleaseAttributeContext(), ReleaseCapturedUnicodeString(), RemoveCachedEntry(), CHubController::RemoveUsbDevice(), RtlDeleteHeapLock(), RtlpFreeAtomTable(), RtlpFreeAtomTableEntry(), RtlpFreeMemory(), RtlxAddAuditAccessAceEx(), RtlxAddMandatoryLabelAceEx(), RxPrepareToReparseSymbolicLink(), SeAppendPrivileges(), SearchForLegacyDrivers(), SeCaptureLuidAndAttributesArray(), SeCaptureObjectTypeList(), SeCaptureSecurityDescriptor(), SeCaptureSidAndAttributesArray(), SeDeleteAccessState(), SeFreePrivileges(), SendFragments(), SepAccessCheckAndAuditAlarm(), SepCaptureAcl(), SepCaptureSid(), SepDeleteToken(), SepReleaseAcl(), SepReleaseSecurityQualityOfService(), SepReleaseSid(), SepRmCreateLogonSession(), SeReleaseLuidAndAttributesArray(), SeReleaseObjectTypeList(), SeReleaseSecurityDescriptor(), SeReleaseSidAndAttributesArray(), SerenumInitMultiSzString(), SerialRead(), SerialReadWorkItem(), CUSBDevice::SetDeviceAddress(), SharedFace_Release(), SharedMem_Release(), SpiNotifyNCMetricsChanged(), SpiScanAdapter(), SpiSendInquiry(), START_TEST(), SystemProcessTest(), TestAllInformation(), TestCleanEverything(), TestEventScheduling(), TestIrpHandler(), TestMmAllocatePagesForMdl(), TestMmBuildMdlForNonPagedPool(), TestPhysicalMemorySection(), TestPoolQuota(), TestPoolTags(), TestProviderInfo(), TestRelativeNames(), TestSeAssignSecurity(), TestTcpConnect(), TiCloseFileObject(), TiCreateFileObject(), TiUnload(), UnregisterThreadHotKeys(), UnregisterWindowHotKeys(), USBD_GetDeviceInformationEx(), USBH_AbortInterruptPipe(), USBH_AllocateWorkItem(), USBH_CheckDeviceLanguage(), USBH_CreateDevice(), USBH_FdoCleanup(), USBH_FdoQueryBusRelations(), USBH_FdoRemoveDevice(), USBH_FreeWorkItem(), USBH_GetDeviceDescriptor(), USBH_GetDeviceType(), USBH_GetSerialNumberString(), USBH_IoctlGetDescriptor(), USBH_PdoQueryDeviceText(), USBH_PdoRemoveDevice(), USBH_ProcessPortStateChange(), USBH_ResetInterruptPipe(), USBH_StartHubFdoDevice(), USBH_SyncGetDeviceConfigurationDescriptor(), USBH_SyncGetHubDescriptor(), USBH_SyncGetStatus(), USBH_SyncGetStringDescriptor(), USBH_SyncSubmitUrb(), USBH_Transact(), USBH_Worker(), USBPORT_AsyncTimerDpc(), USBPORT_CloseConfiguration(), USBPORT_CompleteTransfer(), USBPORT_CreateDevice(), USBPORT_DeleteEndpoint(), USBPORT_DoIdleNotificationCallback(), USBPORT_DoneSplitTransfer(), USBPORT_FdoPnP(), USBPORT_GetRegistryKeyValueFullInfo(), USBPORT_GetUnicodeName(), USBPORT_HandleSelectInterface(), USBPORT_HandleSubmitURB(), USBPORT_OpenInterface(), USBPORT_OpenPipe(), USBPORT_RemoveDevice(), USBPORT_RestoreDevice(), USBPORT_RH_SetFeatureUSB2PortPower(), USBPORT_RootHubPowerAndChirpAllCcPorts(), USBPORT_SendSetupPacket(), USBPORT_SplitBulkInterruptTransfer(), USBPORT_SynchronizeRootHubCallback(), USBSTOR_AllocateIrp(), USBSTOR_SelectConfigurationAndInterface(), USBSTOR_SendFormatCapacityIrp(), USBSTOR_SendIrp(), USBSTOR_TimerWorkerRoutine(), UserAttachThreadInput(), UserDeleteW32Process(), UserDeleteW32Thread(), UserDestroyAccelTable(), UserEmptyClipboardData(), UserGetClassName(), UserGetLanguageID(), UserMonitorFromRect(), UserPostMessage(), UserRegisterUserApiHook(), UserSendNotifyMessage(), UserUnregisterHotKey(), vfatDestroyCCB(), vfatMakeFCBFromDirEntry(), VfatMount(), vfatSetFCBNewDirName(), VfatSetRenameInformation(), vfatUpdateFCB(), WaitForHwAddress(), WinPosDoOwnedPopups(), WmipQueryRawSMBiosTables(), xHalExamineMBR(), xHalGetPartialGeometry(), xHalIoAssignDriveLetters(), xHalIoReadPartitionTable(), xHalIoSetPartitionInformation(), xHalIoWritePartitionTable(), xHalpGetRDiskCount(), BRUSH::~BRUSH(), and CUSBRequest::~CUSBRequest().

#define EXPORT_SYMBOL (   x)

Definition at line 270 of file module.h.

#define free_page (   addr)    free_pages((addr),0)

Definition at line 641 of file module.h.

Referenced by test_ws_functions().

#define get_page (   p)    atomic_inc(&(p)->count)

Definition at line 575 of file module.h.

#define GFP_ATOMIC   (__GFP_HIGH)

Definition at line 655 of file module.h.

Referenced by dev_alloc_skb(), and skb_cow().

Definition at line 657 of file module.h.

#define GFP_USER   ( __GFP_WAIT | __GFP_IO | __GFP_HIGHIO | __GFP_FS)

Definition at line 656 of file module.h.

#define htons (   x)    ntohs(x)

Definition at line 213 of file module.h.

Referenced by __rpc_uaddr2taddr_af(), __rpcb_findaddr_timed(), AcceptProc(), AdapterDiscoveryThread(), AddrStrToAddr(), adns__query_send(), adns__tcp_tryconnect(), AllocateAnyPort(), AllocatePort(), AllocatePortFromRange(), chksum(), client_start(), Telnet::Connect(), ConnectToReactOSWebsite(), CreateSocket(), CSocket::CSocket(), DeallocatePort(), do_getservbyname(), FTP_InitListenSocket(), GetAddress(), GetAddrInfoW(), GetPortName(), inet_chksum_pseudo(), inet_chksum_pseudo_partial(), init(), init_client(), init_logger_addr(), InitConnection(), ip_output_if(), main(), mswBufferAppendBlob_Servent(), NetBTCall(), NetBTSendNameQuery(), CServerSocket::Open(), open_http(), open_tcp_connect(), OpenControlConnection(), PerformInternalLookup(), PerformLookup(), pmap_getmaps(), pmap_getport(), pmap_rmtcall(), PreparePacket(), processRequest(), resolve_hostname(), rpc_broadcast_exp(), SBind(), SelectReadThread(), send_discover(), send_request(), SendRequest(), server_start(), server_thread(), setpeer(), START_TEST(), StartServer(), tcp_connect(), tcp_create_segment_wnd(), TCPSocketObject::TCPSocketObject(), Test_CloseWhileSelectDuplicatedSocket(), Test_CloseWhileSelectSameSocket(), test_communication(), test_ConnectEx(), test_errors(), test_extendedSocketOptions(), test_getpeername(), test_getsockname(), test_ip_pktinfo(), test_ipv6only(), test_listen(), test_send(), test_sendto(), test_so_reuseaddr(), test_TransmitFile(), test_UDP(), test_WSAAsyncGetServByPort(), test_WSASendMsg(), test_WSASendTo(), WaitForConnect(), write_packet(), and WspiapiLegacyGetAddrInfo().

#define HZ   (100)

Definition at line 1060 of file module.h.

Referenced by JIFFIES().

#define IS_ERR_VALUE (   x)    ((x) >= (unsigned long)-MAX_ERRNO)

Definition at line 235 of file module.h.

Referenced by IS_ERR().

#define is_sync_wait (   wait)    (TRUE)

Definition at line 494 of file module.h.

Referenced by prepare_to_wait(), and prepare_to_wait_exclusive().

#define KERN_ALERT   "<1>" /* action must be taken immediately */

Definition at line 221 of file module.h.

Referenced by journal_bmap().

#define KERN_CRIT   "<2>" /* critical conditions */

Definition at line 222 of file module.h.

#define KERN_DEBUG   "<7>" /* debug-level messages */

Definition at line 227 of file module.h.

Referenced by ext4_ext_binsearch_idx(), tcp_reset_xmit_timer(), and tcp_tw_put().

#define KERN_EMERG   "<0>" /* system is unusable */
#define KERN_ERR   "<3>" /* error conditions */
#define KERN_INFO   "<6>" /* informational */

Definition at line 226 of file module.h.

#define KERN_NOTICE   "<5>" /* normal but significant condition */

Definition at line 225 of file module.h.

Referenced by journal_alloc_journal_head().

#define KERN_WARNING   "<4>" /* warning conditions */
#define kfree (   p)    Ext2FreePool(p, 'JBDM')

Definition at line 1114 of file module.h.

#define KM_USER0   0

Definition at line 663 of file module.h.

#define kmalloc (   size,
  gfp 
)    Ext2AllocatePool(NonPagedPool, size, 'JBDM')

Definition at line 1113 of file module.h.

#define le16_to_cpup   __le16_to_cpup

Definition at line 163 of file module.h.

#define le16_to_cpus   __le16_to_cpus

Definition at line 175 of file module.h.

#define le32_to_cpup   __le32_to_cpup

Definition at line 161 of file module.h.

#define le32_to_cpus   __le32_to_cpus

Definition at line 173 of file module.h.

#define le64_to_cpu   __le64_to_cpu

Definition at line 145 of file module.h.

Referenced by le64_add_cpu().

#define le64_to_cpup   __le64_to_cpup

Definition at line 159 of file module.h.

#define le64_to_cpus   __le64_to_cpus

Definition at line 171 of file module.h.

#define likely

Definition at line 261 of file module.h.

#define LOAD_MODULE (   X)
Value:
do { \
rc = module_##X(); \
} while(0)
#define X(b, s)

Definition at line 282 of file module.h.

Referenced by DriverEntry().

#define LOAD_NLS   LOAD_MODULE

Definition at line 290 of file module.h.

Referenced by Ext2LoadAllNls(), and RfsdLoadAllNls().

#define LockPage (   page)    set_bit(PG_locked, &(page)->flags)

Definition at line 611 of file module.h.

#define MAX_BUF_PER_PAGE   (PAGE_CACHE_SIZE / 512)

Definition at line 697 of file module.h.

#define MAX_ERRNO   4095

Definition at line 234 of file module.h.

#define might_sleep ( )    do {} while(0)

Definition at line 440 of file module.h.

Referenced by lock_buffer(), and wait_on_buffer().

#define MODULE_ALIAS_NLS (   x)

Definition at line 269 of file module.h.

#define module_exit (   X)    void __exit module_##X() {X();}

Definition at line 277 of file module.h.

#define module_init (   X)    int __init module_##X() {return X();}

Definition at line 276 of file module.h.

#define MODULE_LICENSE (   x)

Definition at line 268 of file module.h.

#define module_put (   x)

Definition at line 274 of file module.h.

Referenced by unload_nls().

#define mutex_init (   x)    ExInitializeFastMutex(&((x)->lock))

Definition at line 450 of file module.h.

#define mutex_lock (   x)    ExAcquireFastMutex(&((x)->lock))

Definition at line 451 of file module.h.

#define mutex_unlock (   x)    ExReleaseFastMutex(&((x)->lock))

Definition at line 452 of file module.h.

#define NLS_MAX_CHARSET_SIZE   6 /* for UTF-8 */

Definition at line 1042 of file module.h.

#define offsetof (   type,
  member 
)    ((ULONG_PTR)&(((type *)0)->member))

Definition at line 29 of file module.h.

#define page_address (   _page)    ((char*)_page + sizeof(struct page))

Definition at line 564 of file module.h.

#define page_buffers (   page)
Value:
( \
BUG_ON(!PagePrivate(page)), \
((struct buffer_head *)page_private(page)) \
)
Definition: module.h:566
#define BUG_ON(c)
Definition: module.h:253

Definition at line 798 of file module.h.

#define PAGE_CACHE_SHIFT   (12)

Definition at line 696 of file module.h.

Referenced by journal_blocks_per_page().

#define PAGE_CACHE_SIZE   (PAGE_SIZE)

Definition at line 695 of file module.h.

#define page_has_buffers (   page)    PagePrivate(page)

Definition at line 803 of file module.h.

#define Page_Uptodate (   page)    test_bit(PG_uptodate, &(page)->flags)

Definition at line 600 of file module.h.

#define PageActive (   page)    test_bit(PG_active, &(page)->flags)

Definition at line 628 of file module.h.

#define PageChecked (   page)    test_bit(PG_checked, &(page)->flags)

Definition at line 613 of file module.h.

#define PageDirty (   page)    test_bit(PG_dirty, &(page)->flags)

Definition at line 607 of file module.h.

Referenced by MmpPageOutPhysicalAddress().

#define PageError (   page)    test_bit(PG_error, &(page)->flags)

Definition at line 621 of file module.h.

#define PageLaunder (   page)    test_bit(PG_launder, &(page)->flags)

Definition at line 616 of file module.h.

#define PageLocked (   page)    test_bit(PG_locked, &(page)->flags)

Definition at line 610 of file module.h.

#define PageReferenced (   page)    test_bit(PG_referenced, &(page)->flags)

Definition at line 624 of file module.h.

#define PG_active   7

Definition at line 584 of file module.h.

#define PG_arch_1   13

Definition at line 589 of file module.h.

#define PG_checked   12 /* kill me in 2.5.<early>. */

Definition at line 588 of file module.h.

#define PG_dirty   4

Definition at line 581 of file module.h.

#define PG_error   1

Definition at line 578 of file module.h.

#define PG_fs_1   16 /* Filesystem specific */

Definition at line 592 of file module.h.

#define PG_highmem   11

Definition at line 587 of file module.h.

#define PG_launder   15 /* written out by VM pressure.. */

Definition at line 591 of file module.h.

#define PG_locked   0 /* Page is locked. Don't touch. */

Definition at line 577 of file module.h.

#define PG_lru   6

Definition at line 583 of file module.h.

#define PG_referenced   2

Definition at line 579 of file module.h.

#define PG_reserved   14

Definition at line 590 of file module.h.

#define PG_skip   10

Definition at line 586 of file module.h.

#define PG_slab   8

Definition at line 585 of file module.h.

#define PG_unused   5

Definition at line 582 of file module.h.

#define PG_uptodate   3

Definition at line 580 of file module.h.

#define printk   DbgPrint

Definition at line 229 of file module.h.

#define READ   0

Definition at line 1163 of file module.h.

#define READ_META   (READ | (1 << BIO_RW_META))

Definition at line 1168 of file module.h.

#define READ_SYNC   (READ | (1 << BIO_RW_SYNC))

Definition at line 1167 of file module.h.

#define READA   2 /* read-ahead - don't block if no resources */

Definition at line 1165 of file module.h.

#define RW_MASK   1

Definition at line 1161 of file module.h.

#define RWA_MASK   2

Definition at line 1162 of file module.h.

#define set_current_state (   state)    do {} while(0)

Definition at line 495 of file module.h.

Referenced by prepare_to_wait(), and prepare_to_wait_exclusive().

#define SetPageActive (   page)    set_bit(PG_active, &(page)->flags)

Definition at line 629 of file module.h.

#define SetPageChecked (   page)    set_bit(PG_checked, &(page)->flags)

Definition at line 614 of file module.h.

#define SetPageDirty (   page)    set_bit(PG_dirty, &(page)->flags)

Definition at line 608 of file module.h.

#define SetPageError (   page)    set_bit(PG_error, &(page)->flags)

Definition at line 622 of file module.h.

#define SetPageLaunder (   page)    set_bit(PG_launder, &(page)->flags)

Definition at line 617 of file module.h.

#define SetPageReferenced (   page)    set_bit(PG_referenced, &(page)->flags)

Definition at line 625 of file module.h.

#define SetPageUptodate (   page)
Value:
do { \
} while (0)
#define PG_uptodate
Definition: module.h:580
Definition: module.h:566
#define arch_set_page_uptodate(page)
Definition: module.h:595
GLbitfield flags
Definition: glext.h:7161
static int set_bit(int nr, volatile unsigned long *addr)
Definition: module.h:338

Definition at line 601 of file module.h.

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

Definition at line 1119 of file module.h.

Referenced by journal_init_revoke_caches().

#define SLAB_KERNEL   0x00000001U

Definition at line 1120 of file module.h.

#define SLAB_TEMPORARY   0x00000002U
#define smp_rmb ( )    do {}while(0)

Definition at line 1207 of file module.h.

Referenced by ext4_count_free_blocks().

#define spin_lock (   sl)    KeAcquireSpinLock(&((sl)->lock), &((sl)->irql))

Definition at line 304 of file module.h.

Referenced by find_nls(), register_nls(), and unregister_nls().

#define spin_lock_init (   sl)    KeInitializeSpinLock(&((sl)->lock))

Definition at line 303 of file module.h.

Referenced by Ext2LoadAllNls(), init_waitqueue_head(), RfsdLoadAllNls(), and skb_queue_head_init().

#define spin_unlock (   sl)    KeReleaseSpinLock(&((sl)->lock), (sl)->irql)

Definition at line 305 of file module.h.

Referenced by find_nls(), register_nls(), and unregister_nls().

#define SWRITE   3 /* for ll_rw_block() - wait for buffer lock */

Definition at line 1166 of file module.h.

Referenced by journal_update_superblock(), and ll_rw_block().

#define TAS_BUFFER_FNS (   bit,
  name 
)
Value:
static inline int test_set_buffer_##name(struct buffer_head *bh) \
{ \
return test_and_set_bit(BH_##bit, &(bh)->b_state); \
} \
static inline int test_clear_buffer_##name(struct buffer_head *bh) \
{ \
return test_and_clear_bit(BH_##bit, &(bh)->b_state); \
} \
GLuint const GLchar * name
Definition: glext.h:6031
unsigned long b_state
Definition: module.h:715
return(0)
static int test_and_clear_bit(int nr, volatile unsigned long *addr)
Definition: module.h:373
static int test_and_set_bit(int nr, volatile unsigned long *addr)
Definition: module.h:395

Definition at line 759 of file module.h.

#define TASK_INTERRUPTIBLE   1

Definition at line 415 of file module.h.

#define TASK_UNINTERRUPTIBLE   2

Definition at line 416 of file module.h.

#define THIS_MODULE   NULL

Definition at line 267 of file module.h.

#define time_after (   a,
  b 
)
Value:
(typecheck(unsigned long, a) && \
typecheck(unsigned long, b) && \
((long)(b) - (long)(a) < 0))
unsigned long
Definition: typeof.h:99
GLboolean GLboolean GLboolean b
Definition: glext.h:6204
#define typecheck(x, y)
Definition: module.h:1189
GLboolean GLboolean GLboolean GLboolean a
Definition: glext.h:6204

Definition at line 1191 of file module.h.

#define time_after_eq (   a,
  b 
)
Value:
(typecheck(unsigned long, a) && \
typecheck(unsigned long, b) && \
((long)(a) - (long)(b) >= 0))
unsigned long
Definition: typeof.h:99
GLboolean GLboolean GLboolean b
Definition: glext.h:6204
#define typecheck(x, y)
Definition: module.h:1189
GLboolean GLboolean GLboolean GLboolean a
Definition: glext.h:6204

Definition at line 1197 of file module.h.

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

Definition at line 1195 of file module.h.

#define time_before_eq (   a,
  b 
)    time_after_eq(b,a)

Definition at line 1201 of file module.h.

#define time_in_range (   a,
  b,
  c 
)
Value:
GLboolean GLboolean GLboolean b
Definition: glext.h:6204
const GLubyte * c
Definition: glext.h:8905
#define time_after_eq(a, b)
Definition: module.h:1197
GLboolean GLboolean GLboolean GLboolean a
Definition: glext.h:6204
#define time_before_eq(a, b)
Definition: module.h:1201

Definition at line 1203 of file module.h.

#define touch_buffer (   bh)    mark_page_accessed(bh->b_page)

Definition at line 794 of file module.h.

#define try_module_get (   x)    (TRUE)

Definition at line 273 of file module.h.

Referenced by find_nls().

#define TryLockPage (   page)    test_and_set_bit(PG_locked, &(page)->flags)

Definition at line 612 of file module.h.

#define typecheck (   x,
  y 
)    (TRUE)

Definition at line 1189 of file module.h.

#define unlikely

Definition at line 262 of file module.h.

#define UNLOAD_MODULE (   X)
Value:
do { \
module_##X(); \
} while(0)
#define X(b, s)

Definition at line 286 of file module.h.

Referenced by DriverEntry().

#define UNLOAD_NLS   UNLOAD_MODULE

Definition at line 291 of file module.h.

Referenced by Ext2UnloadAllNls(), and RfsdUnloadAllNls().

#define UnlockPage (   page)    unlock_page(page)

Definition at line 599 of file module.h.

#define WQ_FLAG_AUTO_REMOVAL   0x02

Definition at line 463 of file module.h.

Referenced by wait_queue_create().

#define WQ_FLAG_EXCLUSIVE   0x01
#define WRITE   1

Definition at line 1164 of file module.h.

Referenced by __brelse(), ll_rw_block(), submit_bh_mdl(), submit_bh_pin(), and sync_dirty_buffer().

#define WRITE_BARRIER   ((1 << BIO_RW) | (1 << BIO_RW_BARRIER))

Definition at line 1170 of file module.h.

#define WRITE_SYNC   (WRITE | (1 << BIO_RW_SYNC))

Definition at line 1169 of file module.h.

#define yield ( )    do {} while(0)

Definition at line 439 of file module.h.

Referenced by insert_revoke_hash(), and journal_alloc_journal_head().

Typedef Documentation

typedef void( bh_end_io_t)(struct buffer_head *bh, int uptodate)

Definition at line 702 of file module.h.

typedef void(* kmem_cache_cb_t)(void *, kmem_cache_t *, unsigned long)

Definition at line 1123 of file module.h.

Definition at line 534 of file module.h.

typedef struct mutex mutex_t
typedef GUID UUID

Definition at line 1081 of file module.h.

Definition at line 492 of file module.h.

Definition at line 460 of file module.h.

Enumeration Type Documentation

Enumerator
BH_Uptodate 
BH_Dirty 
BH_Verified 
BH_Lock 
BH_Req 
BH_Uptodate_Lock 
BH_Mapped 
BH_New 
BH_Async_Read 
BH_Async_Write 
BH_Delay 
BH_Boundary 
BH_Write_EIO 
BH_Ordered 
BH_Eopnotsupp 
BH_Unwritten 
BH_PrivateStart 

Definition at line 669 of file module.h.

669  {
670  BH_Uptodate, /* Contains valid data */
671  BH_Dirty, /* Is dirty */
672  BH_Verified, /* Is verified */
673  BH_Lock, /* Is locked */
674  BH_Req, /* Has been submitted for I/O */
675  BH_Uptodate_Lock, /* Used by the first bh in a page, to serialise
676  * IO completion of other buffers in the page
677  */
678 
679  BH_Mapped, /* Has a disk mapping */
680  BH_New, /* Disk mapping was newly created by get_block */
681  BH_Async_Read, /* Is under end_buffer_async_read I/O */
682  BH_Async_Write, /* Is under end_buffer_async_write I/O */
683  BH_Delay, /* Buffer is not yet allocated on disk */
684  BH_Boundary, /* Block is followed by a discontiguity */
685  BH_Write_EIO, /* I/O error on write */
686  BH_Ordered, /* ordered write */
687  BH_Eopnotsupp, /* operation not supported (barrier) */
688  BH_Unwritten, /* Buffer is allocated on disk but not written */
689 
690  BH_PrivateStart, /* not a state bit, but the first bit available
691  * for private allocation by other entities
692  */
693 };
Definition: module.h:674
Definition: module.h:680

Function Documentation

void __bforget ( struct buffer_head )

Definition at line 833 of file linux.c.

Referenced by bforget(), and journal_forget().

834 {
835  clear_buffer_dirty(bh);
836  __brelse(bh);
837 }
void __brelse(struct buffer_head *bh)
Definition: linux.c:794
struct buffer_head* __bread ( struct block_device ,
sector_t  block,
unsigned  size 
)
void __breadahead ( struct block_device ,
sector_t  block,
unsigned int  size 
)
void __brelse ( struct buffer_head )

Definition at line 794 of file linux.c.

Referenced by __bforget(), __dispose_buffer(), __journal_remove_journal_head(), add_dirent_to_buf(), brelse(), Ext2AddDotEntries(), Ext2GetInodeLba(), Ext2ScanDir(), ext3_bread(), ext4_check_descriptors(), journal_forget(), journal_put_journal_head(), and put_bh().

795 {
796  struct block_device *bdev = bh->b_bdev;
797  PEXT2_VCB Vcb = (PEXT2_VCB)bdev->bd_priv;
798 
799  ASSERT(Vcb->Identifier.Type == EXT2VCB);
800 
801  /* write data in case it's dirty */
802  while (buffer_dirty(bh)) {
803  ll_rw_block(WRITE, 1, &bh);
804  }
805 
806  if (1 == atomic_read(&bh->b_count)) {
807  } else if (atomic_dec_and_test(&bh->b_count)) {
808  atomic_inc(&bh->b_count);
809  } else {
810  return;
811  }
812 
814  if (atomic_dec_and_test(&bh->b_count)) {
815  ASSERT(0 == atomic_read(&bh->b_count));
816  } else {
818  return;
819  }
820  buffer_head_remove(bdev, bh);
821  KeQuerySystemTime(&bh->b_ts_drop);
822  InsertTailList(&Vcb->bd.bd_bh_free, &bh->b_link);
823  KeClearEvent(&Vcb->bd.bd_bh_notify);
826 
827  DEBUG(DL_BH, ("brelse: cnt=%u size=%u blk=%10.10xh bh=%p ptr=%p\n",
828  atomic_read(&g_jbh.bh_count) - 1, bh->b_size,
829  bh->b_blocknr, bh, bh->b_data ));
830 }
#define KeQuerySystemTime(t)
Definition: env_spec_w32.h:570
#define TRUE
Definition: types.h:120
#define DL_BH
Definition: ext2fs.h:1400
ASSERT((InvokeOnSuccess||InvokeOnError||InvokeOnCancel)?(CompletionRoutine!=NULL):TRUE)
EXT2_REAPER bhReaper
Definition: ext2fs.h:540
struct block_device bd
Definition: ext2fs.h:764
void * bd_priv
Definition: module.h:544
#define atomic_read(v)
Definition: atomic.h:23
#define InsertTailList(ListHead, Entry)
LONG NTAPI KeSetEvent(IN PKEVENT Event, IN KPRIORITY Increment, IN BOOLEAN Wait)
Definition: eventobj.c:159
BOOLEAN NTAPI ExAcquireResourceExclusiveLite(IN PERESOURCE Resource, IN BOOLEAN Wait)
Definition: resource.c:770
#define FALSE
Definition: types.h:117
static void atomic_inc(atomic_t volatile *v)
Definition: atomic.h:95
KEVENT Wait
Definition: ext2fs.h:496
VOID FASTCALL ExReleaseResourceLite(IN PERESOURCE Resource)
Definition: resource.c:1817
static int atomic_dec_and_test(atomic_t volatile *v)
Definition: atomic.h:121
void ll_rw_block(int rw, int nr, struct buffer_head *bhs[])
Definition: linux.c:852
static void buffer_head_remove(struct block_device *bdev, struct buffer_head *bh)
Definition: linux.c:424
PEXT2_GLOBAL Ext2Global
Definition: init.c:16
ERESOURCE bd_bh_lock
Definition: module.h:550
struct _EXT2_VCB * PEXT2_VCB
#define DEBUG(args)
Definition: rdesktop.h:129
VOID NTAPI KeClearEvent(IN PKEVENT Event)
Definition: eventobj.c:22
struct _EXT2_BUFFER_HEAD g_jbh
InsertTailList & Vcb
Definition: btrfs.c:2628
#define WRITE
Definition: module.h:1164
struct buffer_head* __find_get_block ( struct block_device bdev,
sector_t  block,
unsigned long  size 
)

Definition at line 922 of file linux.c.

Referenced by sb_find_get_block().

923 {
924  return __getblk(bdev, block, size);
925 }
static unsigned int block
Definition: xmlmemory.c:118
struct buffer_head * __getblk(struct block_device *bdev, sector_t block, unsigned long size)
Definition: linux.c:785
GLsizeiptr size
Definition: glext.h:5919
void __free_pages ( struct page page,
unsigned int  order 
)
unsigned long __get_free_pages ( unsigned int  gfp_mask,
unsigned int  order 
)
struct buffer_head* __getblk ( struct block_device bdev,
sector_t  block,
unsigned long  size 
)

Definition at line 785 of file linux.c.

Referenced by __find_get_block(), do_one_pass(), journal_get_descriptor_buffer(), journal_init_inode(), jread(), and sb_bread().

790 {
791  return get_block_bh(bdev, block, size, 0);
792 }
static unsigned int block
Definition: xmlmemory.c:118
GLsizeiptr size
Definition: glext.h:5919
struct buffer_head * get_block_bh(struct block_device *bdev, sector_t block, unsigned long size, int zero)
Definition: linux.c:768
void __lock_buffer ( struct buffer_head bh)

Definition at line 839 of file linux.c.

Referenced by lock_buffer().

840 {
841 }
int __set_page_dirty_buffers ( struct page page)
void __wait_on_buffer ( struct buffer_head )

Definition at line 848 of file linux.c.

Referenced by wait_on_buffer().

849 {
850 }
struct buffer_head* alloc_buffer_head ( gfp_t  gfp_flags)
struct buffer_head* alloc_page_buffers ( struct page page,
unsigned long  size,
int  retry 
)
int autoremove_wake_function ( wait_queue_t wait,
unsigned  mode,
int  sync,
void key 
)
static void bforget ( struct buffer_head bh)
inlinestatic

Definition at line 957 of file module.h.

Referenced by extents_bforget().

958 {
959  if (bh)
960  __bforget(bh);
961 }
void __bforget(struct buffer_head *)
Definition: linux.c:833
int bh_submit_read ( struct buffer_head bh)

Definition at line 882 of file linux.c.

Referenced by Ext2FreeInode(), Ext2NewBlock(), Ext2NewInode(), ext3_bread(), and sb_bread().

883 {
884  ll_rw_block(READ, 1, &bh);
885  return 0;
886 }
#define READ(_gif, _buf, _len)
Definition: ungif.c:100
void ll_rw_block(int rw, int nr, struct buffer_head *bhs[])
Definition: linux.c:852
int bh_uptodate_or_lock ( struct buffer_head bh)
wait_queue_head_t* bh_waitq_head ( struct buffer_head bh)
int block_commit_write ( struct page page,
unsigned  from,
unsigned  to 
)
void block_invalidatepage ( struct page page,
unsigned long  offset 
)
void block_sync_page ( struct page )
static void brelse ( struct buffer_head bh)
inlinestatic
void buffer_init ( void  )
static int clear_bit ( int  nr,
volatile unsigned long addr 
)
inlinestatic

clear_bit - Clears a bit in memory : Bit to clear : Address to start counting from

clear_bit() is atomic and may not be reordered. However, it does not contain a memory barrier, so if it is used for locking purposes, you should call smp_mb__before_clear_bit() and/or smp_mb__after_clear_bit() in order to ensure changes are visible on other processors.

Definition at line 357 of file module.h.

Referenced by test_and_clear_bit().

358 {
359  addr += (nr >> ORDER_PER_LONG);
360  nr &= (BITS_PER_LONG - 1);
361 
362  return !!(InterlockedAnd(addr, ~(1 << nr)) & (1 << nr));
363 }
#define InterlockedAnd
Definition: interlocked.h:62
ULONG nr
Definition: thread.c:7
#define BITS_PER_LONG
Definition: types.h:82
GLenum const GLvoid * addr
Definition: glext.h:9621
#define ORDER_PER_LONG
Definition: types.h:83
static int cond_resched ( )
inlinestatic

Definition at line 432 of file module.h.

Referenced by do_one_pass().

432  {
433  return FALSE;
434 }
#define FALSE
Definition: types.h:117
void create_empty_buffers ( struct page ,
unsigned  long,
unsigned long  b_state 
)
static __u32 do_div64 ( __u64 n,
__u64  b 
)
inlinestatic

Definition at line 1210 of file module.h.

1211 {
1212  __u64 mod;
1213 
1214  mod = *n % b;
1215  *n = *n / b;
1216  return (__u32) mod;
1217 }
GLuint n
Definition: s_context.h:57
#define b
Definition: ke_i.h:79
unsigned int __u32
Definition: compat.h:90
unsigned __int64 __u64
Definition: types.h:27
static int mod
Definition: i386-dis.c:1273
static void* ERR_PTR ( long  error)
inlinestatic

Definition at line 237 of file module.h.

Referenced by __read_extent_tree_block(), and ext4_find_extent().

238 {
239  return (void *)(long_ptr_t) error;
240 }
long long_ptr_t
Definition: types.h:91
NTKERNELAPI PVOID NTAPI ExAllocatePoolWithTag ( IN POOL_TYPE  PoolType,
IN SIZE_T  NumberOfBytes,
IN ULONG  Tag 
)

Definition at line 549 of file heap.c.

Referenced by ExAllocatePool(), ExAllocatePoolWithQuotaTag(), ExAllocatePoolWithTagPriority(), ExGetPoolTagInfo(), and InitializePool().

553 {
555 }
IN SIZE_T NumberOfBytes
Definition: ndis.h:3914
IN ULONG IN ULONG Tag
Definition: evtlib.h:155
PVOID FrLdrHeapAllocateEx(PVOID HeapHandle, SIZE_T ByteSize, ULONG Tag)
Definition: heap.c:317
PVOID FrLdrDefaultHeap
Definition: heap.c:34
PVOID Ext2AllocatePool ( IN POOL_TYPE  PoolType,
IN SIZE_T  NumberOfBytes,
IN ULONG  Tag 
)

Definition at line 2684 of file debug.c.

2689 {
2690  return ExAllocatePoolWithTag(
2691  PoolType,
2692  NumberOfBytes,
2693  Tag);
2694 }
#define ExAllocatePoolWithTag(hernya, size, tag)
Definition: env_spec_w32.h:350
IN REFCLSID IN PUNKNOWN IN POOL_TYPE PoolType
Definition: unknown.h:68
IN SIZE_T NumberOfBytes
Definition: ndis.h:3914
IN ULONG IN ULONG Tag
Definition: evtlib.h:155
VOID Ext2FreePool ( IN PVOID  P,
IN ULONG  Tag 
)

Definition at line 2697 of file debug.c.

2701 {
2703 }
IN ULONG IN ULONG Tag
Definition: evtlib.h:155
#define ExFreePoolWithTag(_P, _T)
Definition: module.h:1097
#define P(row, col)
Definition: m_matrix.c:147
struct buffer_head* extents_bread ( struct super_block sb,
sector_t  block 
)

Definition at line 15 of file ext4_bh.c.

Referenced by __read_extent_tree_block().

16 {
17  return sb_getblk(sb, block);
18 }
static unsigned int block
Definition: xmlmemory.c:118
static struct buffer_head * sb_getblk(struct super_block *sb, sector_t block)
Definition: module.h:964
void extents_brelse ( struct buffer_head bh)

Definition at line 51 of file ext4_bh.c.

Referenced by __read_extent_tree_block(), ext4_ext_drop_refs(), ext4_ext_grow_indepth(), ext4_ext_remove_space(), ext4_ext_search_right(), ext4_ext_split(), ext4_ext_try_to_merge_up(), and ext4_find_extent().

52 {
53  brelse(bh);
54 }
static void brelse(struct buffer_head *bh)
Definition: module.h:943
struct buffer_head* extents_bwrite ( struct super_block sb,
sector_t  block 
)

Definition at line 27 of file ext4_bh.c.

Referenced by ext4_ext_grow_indepth(), and ext4_ext_split().

28 {
29  return sb_getblk_zero(sb, block);
30 
31 }
static unsigned int block
Definition: xmlmemory.c:118
static struct buffer_head * sb_getblk_zero(struct super_block *sb, sector_t block)
Definition: module.h:970
void extents_mark_buffer_dirty ( struct buffer_head bh)

Definition at line 39 of file ext4_bh.c.

Referenced by __ext4_handle_dirty_metadata().

40 {
41  set_buffer_dirty(bh);
42 }
NTKERNELAPI NTSTATUS ExUuidCreate ( OUT UUID Uuid)

Definition at line 303 of file uuid.c.

Referenced by ChanMgrCreateChannel(), CreateNewVolumeName(), CreateNoDriveLetterEntry(), Ext2InitializeVcb(), and IntCreateNewRegistryPath().

304 {
306  return FALSE;
307 }
#define FALSE
Definition: types.h:117
#define UNIMPLEMENTED
Definition: debug.h:114
static void fini_bh ( struct buffer_head **  bh)
inlinestatic

Definition at line 949 of file module.h.

Referenced by Ext2CheckBitmapConsistency(), Ext2CheckSetBlock(), Ext2FreeBlock(), Ext2FreeInode(), Ext2NewBlock(), Ext2NewInode(), Ext2PutGroup(), Ext2SaveGroup(), Ext2UpdateGroupDirStat(), ext4_count_dirs(), ext4_count_free_blocks(), ext4_count_free_inodes(), and ext4_group_used_meta_blocks().

950 {
951  if (bh && *bh) {
952  brelse(*bh);
953  *bh = NULL;
954  }
955 }
static void brelse(struct buffer_head *bh)
Definition: module.h:943
smooth NULL
Definition: ftsmooth.c:557
void finish_wait ( wait_queue_head_t q,
wait_queue_t wait 
)

Definition at line 250 of file linux.c.

251 {
252  unsigned long flags;
253  struct __wait_queue *wait = *waiti;
254 
255  __set_current_state(TASK_RUNNING);
256  /*
257  * We can check for list emptiness outside the lock
258  * IFF:
259  * - we use the "careful" check that verifies both
260  * the next and prev pointers, so that there cannot
261  * be any half-pending updates in progress on other
262  * CPU's that we haven't seen yet (and that might
263  * still change the stack area.
264  * and
265  * - all other users take the lock (ie we can only
266  * have _one_ other CPU that looks at or modifies
267  * the list).
268  */
269  if (!list_empty_careful(&wait->task_list)) {
270  spin_lock_irqsave(&q->lock, flags);
271  list_del_init(&wait->task_list);
272  spin_unlock_irqrestore(&q->lock, flags);
273  }
274 
275  /* free wait */
276  wait_queue_destroy(wait);
277 }
static int list_empty_careful(const struct list_head *head)
Definition: list.h:138
#define __set_current_state(state)
Definition: module.h:496
struct list_head task_list
Definition: module.h:469
spinlock_t lock
Definition: module.h:489
static void list_del_init(struct list_head *entry)
Definition: list.h:100
GLbitfield flags
Definition: glext.h:7161
#define spin_lock_irqsave(sl, flags)
Definition: module.h:306
#define spin_unlock_irqrestore(sl, flags)
Definition: module.h:307
void wait_queue_destroy(struct __wait_queue *wait)
Definition: linux.c:142
void free_buffer_head ( struct buffer_head bh)

Definition at line 346 of file linux.c.

Referenced by Ext2bhReaperThread(), Ext2DropBH(), get_block_bh_mdl(), and get_block_bh_pin().

347 {
348  if (bh) {
349  if (bh->b_mdl) {
350 
351  DEBUG(DL_BH, ("bh=%p mdl=%p (Flags:%xh VA:%p) released.\n", bh, bh->b_mdl,
352  bh->b_mdl->MdlFlags, bh->b_mdl->MappedSystemVa));
353  if (IsFlagOn(bh->b_mdl->MdlFlags, MDL_MAPPED_TO_SYSTEM_VA)) {
354  MmUnmapLockedPages(bh->b_mdl->MappedSystemVa, bh->b_mdl);
355  }
356  Ext2DestroyMdl(bh->b_mdl);
357  }
358  if (bh->b_bcb) {
360  }
361 
362  DEBUG(DL_BH, ("bh=%p freed.\n", bh));
363  DEC_MEM_COUNT(PS_BUFF_HEAD, bh, sizeof(struct buffer_head));
364  kmem_cache_free(g_jbh.bh_cache, bh);
365  atomic_dec(&g_jbh.bh_count);
366  }
367 }
ULONG_PTR ERESOURCE_THREAD
Definition: extypes.h:208
#define DEC_MEM_COUNT(_i, _p, _s)
Definition: ext2fs.h:598
#define DL_BH
Definition: ext2fs.h:1400
#define MDL_MAPPED_TO_SYSTEM_VA
Definition: mmtypes.h:18
void kmem_cache_free(kmem_cache_t *kc, void *p)
Definition: linux.c:103
PMDL b_mdl
Definition: module.h:717
VOID NTAPI MmUnmapLockedPages(IN PVOID BaseAddress, IN PMDL Mdl)
Definition: mdlsup.c:811
#define IsFlagOn(a, b)
Definition: ext2fs.h:176
#define PS_BUFF_HEAD
Definition: common.h:35
void * b_bcb
Definition: module.h:718
#define DEBUG(args)
Definition: rdesktop.h:129
static void atomic_dec(atomic_t volatile *v)
Definition: atomic.h:107
struct _EXT2_BUFFER_HEAD g_jbh
VOID NTAPI CcUnpinDataForThread(IN PVOID Bcb, IN ERESOURCE_THREAD ResourceThreadId)
Definition: pinsup.c:991
VOID Ext2DestroyMdl(IN PMDL Mdl)
Definition: block.c:85
void free_pages ( unsigned long  addr,
unsigned int  order 
)
struct super_block* freeze_bdev ( struct block_device )
int fsync_bdev ( struct block_device )
int fsync_no_super ( struct block_device )
int fsync_super ( struct super_block )
static void get_bh ( struct buffer_head bh)
inlinestatic

Definition at line 932 of file module.h.

Referenced by __journal_remove_journal_head(), get_block_bh_mdl(), get_block_bh_pin(), journal_add_journal_head(), ll_rw_block(), and sync_dirty_buffer().

933 {
934  atomic_inc(&bh->b_count);
935 }
atomic_t b_count
Definition: module.h:730
static void atomic_inc(atomic_t volatile *v)
Definition: atomic.h:95
struct buffer_head* get_block_bh ( struct block_device bdev,
sector_t  block,
unsigned long  size,
int  zero 
)

Definition at line 768 of file linux.c.

Referenced by __getblk(), sb_getblk(), and sb_getblk_zero().

774 {
775  return get_block_bh_pin(bdev, block, size, zero);
776 }
static unsigned int block
Definition: xmlmemory.c:118
static double zero
Definition: j0_y0.c:96
GLsizeiptr size
Definition: glext.h:5919
struct buffer_head * get_block_bh_pin(struct block_device *bdev, sector_t block, unsigned long size, int zero)
Definition: linux.c:607
void init_buffer ( struct buffer_head ,
bh_end_io_t ,
void  
)
void init_waitqueue_head ( wait_queue_head_t q)

Definition at line 115 of file linux.c.

Referenced by journal_init_common().

116 {
117  spin_lock_init(&q->lock);
119 }
#define INIT_LIST_HEAD(ptr)
Definition: list.h:24
spinlock_t lock
Definition: module.h:489
struct list_head task_list
Definition: module.h:490
#define spin_lock_init(sl)
Definition: module.h:303
int inode_has_buffers ( struct inode )
void invalidate_bdev ( struct block_device )
void invalidate_bh_lrus ( void  )
void invalidate_inode_buffers ( struct inode )
static long IS_ERR ( const void ptr)
inlinestatic

Definition at line 247 of file module.h.

Referenced by ext4_ext_create_new_leaf(), ext4_ext_get_blocks(), ext4_ext_insert_extent(), ext4_ext_remove_space(), ext4_ext_search_right(), and ext4_find_extent().

248 {
249  return IS_ERR_VALUE((unsigned long)(long_ptr_t)ptr);
250 }
long long_ptr_t
Definition: types.h:91
#define IS_ERR_VALUE(x)
Definition: module.h:235
static __u32 JIFFIES ( )
inlinestatic

Definition at line 1062 of file module.h.

1063 {
1064  LARGE_INTEGER Tick;
1065 
1066  KeQueryTickCount(&Tick);
1067  Tick.QuadPart *= KeQueryTimeIncrement();
1068  Tick.QuadPart /= (10000000 / HZ);
1069 
1070  return Tick.LowPart;
1071 }
ULONG NTAPI KeQueryTimeIncrement(VOID)
Definition: clock.c:153
VOID NTAPI KeQueryTickCount(IN PLARGE_INTEGER TickCount)
Definition: clock.c:165
ULONG LowPart
Definition: typedefs.h:104
#define HZ
Definition: module.h:1060
LONGLONG QuadPart
Definition: typedefs.h:112
void* kmem_cache_alloc ( kmem_cache_t kc,
int  flags 
)

Definition at line 92 of file linux.c.

Referenced by insert_revoke_hash(), journal_alloc_journal_head(), and journal_init_revoke().

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
atomic_t count
Definition: module.h:1129
atomic_t acount
Definition: module.h:1130
NPAGED_LOOKASIDE_LIST la
Definition: module.h:1131
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 name,
size_t  size,
size_t  offset,
unsigned long  flags,
kmem_cache_cb_t  ctor 
)

Definition at line 48 of file linux.c.

Referenced by ext2_init_bh(), Ext2InitializeVcb(), journal_init_handle_cache(), journal_init_journal_head_cache(), and journal_init_revoke_caches().

55 {
56  kmem_cache_t *kc = NULL;
57 
58  kc = kmalloc(sizeof(kmem_cache_t), GFP_KERNEL);
59  if (kc == NULL) {
60  goto errorout;
61  }
62 
63  memset(kc, 0, sizeof(kmem_cache_t));
65  &kc->la,
66  NULL,
67  NULL,
68  0,
69  size,
70  'JBKC',
71  0);
72 
73  kc->size = size;
74  strncpy(kc->name, name, 31);
75  kc->constructor = ctor;
76 
77 errorout:
78 
79  return kc;
80 }
char * strncpy(char *DstString, const char *SrcString, ACPI_SIZE Count)
Definition: utclib.c:427
#define GFP_KERNEL
Definition: module.h:658
NPAGED_LOOKASIDE_LIST la
Definition: module.h:1131
LPFNCONSTRUCTOR ctor
Definition: msctf.c:67
kmem_cache_cb_t constructor
Definition: module.h:1132
smooth NULL
Definition: ftsmooth.c:557
VOID NTAPI ExInitializeNPagedLookasideList(IN PNPAGED_LOOKASIDE_LIST Lookaside, IN PALLOCATE_FUNCTION Allocate OPTIONAL, IN PFREE_FUNCTION Free OPTIONAL, IN ULONG Flags, IN SIZE_T Size, IN ULONG Tag, IN USHORT Depth)
Definition: lookas.c:222
void * kmalloc(size_t, int)
ULONG size
Definition: module.h:1128
GLsizeiptr size
Definition: glext.h:5919
CHAR name[32]
Definition: module.h:1126
Definition: name.c:23
#define memset(x, y, z)
Definition: compat.h:39
int kmem_cache_destroy ( kmem_cache_t kc)

Definition at line 82 of file linux.c.

Referenced by Ext2DestroyVcb(), Ext2InitializeVcb(), journal_destroy_handle_cache(), journal_destroy_journal_head_cache(), journal_destroy_revoke_caches(), and journal_init_revoke_caches().

83 {
84  ASSERT(kc != NULL);
85 
87  kfree(kc);
88 
89  return 0;
90 }
ASSERT((InvokeOnSuccess||InvokeOnError||InvokeOnCancel)?(CompletionRoutine!=NULL):TRUE)
NPAGED_LOOKASIDE_LIST la
Definition: module.h:1131
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 kc,
void p 
)

Definition at line 103 of file linux.c.

Referenced by journal_clear_revoke(), journal_destroy_revoke(), journal_free_journal_head(), journal_init_revoke(), and tcp_tw_put().

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

Definition at line 34 of file linux.c.

Referenced by Ext2LoadGroup(), ext4_ext_split(), ext4_find_extent(), and journal_init_common().

35 {
36  void *buffer = kmalloc(size, flags);
37  if (buffer) {
38  memset(buffer, 0, size);
39  }
40  return buffer;
41 }
GLuint buffer
Definition: glext.h:5915
GLbitfield flags
Definition: glext.h:7161
void * kmalloc(size_t, int)
GLsizeiptr size
Definition: glext.h:5919
#define memset(x, y, z)
Definition: compat.h:39
static void le16_add_cpu ( __le16 var,
u16  val 
)
inlinestatic

Definition at line 184 of file module.h.

Referenced by ext4_ext_grow_indepth(), ext4_ext_insert_extent(), ext4_ext_insert_index(), ext4_ext_split(), and ext4_ext_try_to_merge_right().

185 {
186  *var = cpu_to_le16(le16_to_cpu(*var) + val);
187 }
#define le16_to_cpu
Definition: module.h:149
GLuint GLfloat * val
Definition: glext.h:7180
#define cpu_to_le16
Definition: module.h:148
static void le32_add_cpu ( __le32 var,
u32  val 
)
inlinestatic

Definition at line 189 of file module.h.

190 {
191  *var = cpu_to_le32(le32_to_cpu(*var) + val);
192 }
#define le32_to_cpu
Definition: module.h:147
GLuint GLfloat * val
Definition: glext.h:7180
#define cpu_to_le32
Definition: module.h:146
static void le64_add_cpu ( __le64 var,
u64  val 
)
inlinestatic

Definition at line 194 of file module.h.

195 {
196  *var = cpu_to_le64(le64_to_cpu(*var) + val);
197 }
GLuint GLfloat * val
Definition: glext.h:7180
#define le64_to_cpu
Definition: module.h:145
#define cpu_to_le64
Definition: module.h:144
void ll_rw_block ( int  ,
int  ,
struct buffer_head bh[] 
)

Definition at line 852 of file linux.c.

Referenced by __brelse(), bh_submit_read(), journal_get_superblock(), and journal_update_superblock().

853 {
854  int i;
855 
856  for (i = 0; i < nr; i++) {
857 
858  struct buffer_head *bh = bhs[i];
859 
860  if (rw == SWRITE)
861  lock_buffer(bh);
862  else if (test_set_buffer_locked(bh))
863  continue;
864 
865  if (rw == WRITE || rw == SWRITE) {
866  if (test_clear_buffer_dirty(bh)) {
867  get_bh(bh);
868  submit_bh(WRITE, bh);
869  continue;
870  }
871  } else {
872  if (!buffer_uptodate(bh)) {
873  get_bh(bh);
874  submit_bh(rw, bh);
875  continue;
876  }
877  }
878  unlock_buffer(bh);
879  }
880 }
static void get_bh(struct buffer_head *bh)
Definition: module.h:932
ULONG nr
Definition: thread.c:7
GLenum GLclampf GLint i
Definition: glfuncs.h:14
void unlock_buffer(struct buffer_head *bh)
Definition: linux.c:843
int rw(char *fname, struct stat *sbp, int force)
Definition: touch.c:291
static void lock_buffer(struct buffer_head *bh)
Definition: module.h:1016
#define SWRITE
Definition: module.h:1166
#define WRITE
Definition: module.h:1164
int submit_bh(int rw, struct buffer_head *bh)
Definition: linux.c:778
struct nls_table* load_nls ( char )

Definition at line 218 of file nls_base.c.

Referenced by DriverEntry(), Ext2ProcessGlobalProperty(), Ext2ProcessVolumeProperty(), init_nls_big5(), init_nls_euc_jp(), init_nls_euc_kr(), init_nls_gb2312(), init_nls_iso8859_8(), init_nls_koi8_ru(), init_nls_sjis(), and init_nls_tis_620().

219 {
220  struct nls_table *nls;
221 #ifdef CONFIG_KMOD
222  int ret;
223 #endif
224 
225  nls = find_nls(charset);
226  if (nls)
227  return nls;
228 
229 #ifdef CONFIG_KMOD
230  ret = request_module("nls_%s", charset);
231  if (ret != 0) {
232  printk("Unable to load NLS charset %s\n", charset);
233  return NULL;
234  }
235  nls = find_nls(charset);
236 #endif
237  return nls;
238 }
CFF_Charset charset
Definition: cffcmap.c:138
#define nls
Definition: kernel32.h:13
smooth NULL
Definition: ftsmooth.c:557
asmlinkage int printk(const char *fmt,...)
Definition: output.c:76
static struct nls_table * find_nls(char *charset)
Definition: nls_base.c:202
int ret
struct nls_table* load_nls_default ( void  )
static void lock_buffer ( struct buffer_head bh)
inlinestatic

Definition at line 1016 of file module.h.

Referenced by do_one_pass(), journal_get_descriptor_buffer(), ll_rw_block(), sync_dirty_buffer(), test_createbitmap(), and test_createbitmapfromsource().

1017 {
1018  might_sleep();
1019  if (test_set_buffer_locked(bh))
1020  __lock_buffer(bh);
1021 }
void __lock_buffer(struct buffer_head *bh)
Definition: linux.c:839
#define might_sleep()
Definition: module.h:440
static void map_bh ( struct buffer_head bh,
struct super_block sb,
sector_t  block 
)
inlinestatic

Definition at line 995 of file module.h.

996 {
997  set_buffer_mapped(bh);
998  bh->b_bdev = sb->s_bdev;
999  bh->b_blocknr = block;
1000  bh->b_size = sb->s_blocksize;
1001 }
static unsigned int block
Definition: xmlmemory.c:118
size_t b_size
Definition: module.h:724
struct block_device * b_bdev
Definition: module.h:721
blkcnt_t b_blocknr
Definition: module.h:723
kdev_t s_bdev
Definition: fs.h:72
unsigned long s_blocksize
Definition: fs.h:67
void mark_buffer_async_write ( struct buffer_head bh)
void mark_buffer_dirty_inode ( struct buffer_head bh,
struct inode inode 
)
static int need_resched ( )
inlinestatic

Definition at line 435 of file module.h.

435  {
436  return FALSE;
437 }
#define FALSE
Definition: types.h:117
void page_zero_new_buffers ( struct page page,
unsigned  from,
unsigned  to 
)
void prepare_to_wait ( wait_queue_head_t q,
wait_queue_t wait,
int  state 
)

Definition at line 212 of file linux.c.

213 {
214  unsigned long flags;
215  struct __wait_queue *wait = *waiti;
216 
217  wait->flags &= ~WQ_FLAG_EXCLUSIVE;
218  spin_lock_irqsave(&q->lock, flags);
219  if (list_empty(&wait->task_list))
220  __add_wait_queue(q, wait);
221  /*
222  * don't alter the task state if this is just going to
223  * queue an async wait queue callback
224  */
225  if (is_sync_wait(wait))
227  spin_unlock_irqrestore(&q->lock, flags);
228 }
static void __add_wait_queue(wait_queue_head_t *head, struct __wait_queue *new)
Definition: linux.c:147
struct list_head task_list
Definition: module.h:469
spinlock_t lock
Definition: module.h:489
#define set_current_state(state)
Definition: module.h:495
#define is_sync_wait(wait)
Definition: module.h:494
GLbitfield flags
Definition: glext.h:7161
static int state
Definition: maze.c:121
__WINE_SERVER_LIST_INLINE int list_empty(const struct list *list)
Definition: list.h:143
#define spin_lock_irqsave(sl, flags)
Definition: module.h:306
#define spin_unlock_irqrestore(sl, flags)
Definition: module.h:307
#define WQ_FLAG_EXCLUSIVE
Definition: module.h:462
unsigned int flags
Definition: module.h:466
void prepare_to_wait_exclusive ( wait_queue_head_t q,
wait_queue_t wait,
int  state 
)

Definition at line 231 of file linux.c.

232 {
233  unsigned long flags;
234  struct __wait_queue *wait = *waiti;
235 
236  wait->flags |= WQ_FLAG_EXCLUSIVE;
237  spin_lock_irqsave(&q->lock, flags);
238  if (list_empty(&wait->task_list))
239  __add_wait_queue_tail(q, wait);
240  /*
241  * don't alter the task state if this is just going to
242  * queue an async wait queue callback
243  */
244  if (is_sync_wait(wait))
246  spin_unlock_irqrestore(&q->lock, flags);
247 }
struct list_head task_list
Definition: module.h:469
spinlock_t lock
Definition: module.h:489
static void __add_wait_queue_tail(wait_queue_head_t *head, struct __wait_queue *new)
Definition: linux.c:155
#define set_current_state(state)
Definition: module.h:495
#define is_sync_wait(wait)
Definition: module.h:494
GLbitfield flags
Definition: glext.h:7161
static int state
Definition: maze.c:121
__WINE_SERVER_LIST_INLINE int list_empty(const struct list *list)
Definition: list.h:143
#define spin_lock_irqsave(sl, flags)
Definition: module.h:306
#define spin_unlock_irqrestore(sl, flags)
Definition: module.h:307
#define WQ_FLAG_EXCLUSIVE
Definition: module.h:462
unsigned int flags
Definition: module.h:466
static long PTR_ERR ( const void ptr)
inlinestatic

Definition at line 242 of file module.h.

Referenced by ext4_ext_create_new_leaf(), ext4_ext_get_blocks(), ext4_ext_insert_extent(), ext4_ext_search_right(), and ext4_find_extent().

243 {
244  return (long)(long_ptr_t) ptr;
245 }
long long_ptr_t
Definition: types.h:91
static void put_bh ( struct buffer_head bh)
inlinestatic

Definition at line 937 of file module.h.

Referenced by submit_bh_mdl(), and submit_bh_pin().

938 {
939  if (bh)
940  __brelse(bh);
941 }
void __brelse(struct buffer_head *)
Definition: linux.c:794
int register_nls ( struct nls_table )

Definition at line 162 of file nls_base.c.

Referenced by init_nls_ascii(), init_nls_big5(), init_nls_cp1250(), init_nls_cp1251(), init_nls_cp1255(), init_nls_cp437(), init_nls_cp737(), init_nls_cp775(), init_nls_cp850(), init_nls_cp852(), init_nls_cp855(), init_nls_cp857(), init_nls_cp860(), init_nls_cp861(), init_nls_cp862(), init_nls_cp863(), init_nls_cp864(), init_nls_cp865(), init_nls_cp866(), init_nls_cp869(), init_nls_cp874(), init_nls_cp932(), init_nls_cp936(), init_nls_cp949(), init_nls_cp950(), init_nls_euc_jp(), init_nls_euc_kr(), init_nls_gb2312(), init_nls_iso8859_1(), init_nls_iso8859_13(), init_nls_iso8859_14(), init_nls_iso8859_15(), init_nls_iso8859_2(), init_nls_iso8859_3(), init_nls_iso8859_4(), init_nls_iso8859_5(), init_nls_iso8859_6(), init_nls_iso8859_7(), init_nls_iso8859_8(), init_nls_iso8859_9(), init_nls_koi8_r(), init_nls_koi8_ru(), init_nls_koi8_u(), init_nls_sjis(), init_nls_tis_620(), and init_nls_utf8().

163 {
164  struct nls_table ** tmp = &tables;
165 
166  if (!nls)
167  return -EINVAL;
168  if (nls->next)
169  return -EBUSY;
170 
172  while (*tmp) {
173  if (nls == *tmp) {
175  return -EBUSY;
176  }
177  tmp = &(*tmp)->next;
178  }
179  nls->next = tables;
180  tables = nls;
182  return 0;
183 }
struct nls_table * next
Definition: module.h:1038
Definition: arc.h:39
Definition: arc.h:37
#define spin_lock(sl)
Definition: module.h:304
#define nls
Definition: kernel32.h:13
spinlock_t nls_lock
Definition: nls_base.c:23
#define spin_unlock(sl)
Definition: module.h:305
struct define * next
Definition: wpp.c:35
struct nls_table * tables
Definition: nls_base.c:22
int remove_inode_buffers ( struct inode inode)
ULONG FASTCALL RtlUlongByteSwap ( IN ULONG  Source)

Definition at line 61 of file byteswap.c.

Referenced by RtlUlonglongByteSwap().

63 {
64 #if defined(_M_AMD64)
65  return _byteswap_ulong(Source);
66 #else
67  return ((ULONG)RtlUshortByteSwap((USHORT)Source) << 16) | RtlUshortByteSwap((USHORT)(Source >> 16));
68 #endif
69 }
USHORT FASTCALL RtlUshortByteSwap(IN USHORT Source)
Definition: byteswap.c:37
_Check_return_ unsigned long __cdecl _byteswap_ulong(_In_ unsigned long)
unsigned short USHORT
Definition: pedump.c:61
unsigned int ULONG
Definition: retypes.h:1
ULONGLONG FASTCALL RtlUlonglongByteSwap ( IN ULONGLONG  Source)

Definition at line 86 of file byteswap.c.

88 {
89 #if defined(_M_AMD64)
90  return _byteswap_uint64(Source);
91 #else
92  return ((ULONGLONG) RtlUlongByteSwap (Source) << 32) | RtlUlongByteSwap (Source>>32);
93 #endif
94 }
uint64_t ULONGLONG
Definition: typedefs.h:65
_Check_return_ unsigned __int64 __cdecl _byteswap_uint64(_In_ unsigned __int64)
ULONG FASTCALL RtlUlongByteSwap(IN ULONG Source)
Definition: byteswap.c:61
USHORT FASTCALL RtlUshortByteSwap ( IN USHORT  Source)

Definition at line 37 of file byteswap.c.

Referenced by RtlUlongByteSwap().

39 {
40 #if defined(_M_AMD64)
41  return _byteswap_ushort(Source);
42 #else
43  return (Source >> 8) | (Source << 8);
44 #endif
45 }
_Check_return_ unsigned short __cdecl _byteswap_ushort(_In_ unsigned short)
static struct buffer_head* sb_bread ( struct super_block sb,
sector_t  block 
)
static

Definition at line 976 of file module.h.

977 {
978  struct buffer_head *bh = __getblk(sb->s_bdev, block, sb->s_blocksize);
979  if (!bh)
980  return NULL;
981  if (!buffer_uptodate(bh) && (bh_submit_read(bh) < 0)) {
982  brelse(bh);
983  return NULL;
984  }
985  return bh;
986 }
static unsigned int block
Definition: xmlmemory.c:118
struct buffer_head * __getblk(struct block_device *bdev, sector_t block, unsigned long size)
Definition: linux.c:785
static void brelse(struct buffer_head *bh)
Definition: module.h:943
smooth NULL
Definition: ftsmooth.c:557
int bh_submit_read(struct buffer_head *bh)
Definition: linux.c:882
kdev_t s_bdev
Definition: fs.h:72
unsigned long s_blocksize
Definition: fs.h:67
static struct buffer_head* sb_find_get_block ( struct super_block sb,
sector_t  block 
)
static

Definition at line 989 of file module.h.

990 {
991  return __find_get_block(sb->s_bdev, block, sb->s_blocksize);
992 }
static unsigned int block
Definition: xmlmemory.c:118
kdev_t s_bdev
Definition: fs.h:72
struct buffer_head * __find_get_block(struct block_device *bdev, sector_t block, unsigned long size)
Definition: linux.c:922
unsigned long s_blocksize
Definition: fs.h:67
static struct buffer_head* sb_getblk ( struct super_block sb,
sector_t  block 
)
static

Definition at line 964 of file module.h.

Referenced by Ext2CheckSetBlock(), Ext2FreeInode(), Ext2LoadGroup(), Ext2NewBlock(), Ext2NewInode(), ext3_bread(), and extents_bread().

965 {
966  return get_block_bh(sb->s_bdev, block, sb->s_blocksize, 0);
967 }
static unsigned int block
Definition: xmlmemory.c:118
struct buffer_head * get_block_bh(struct block_device *bdev, sector_t block, unsigned long size, int zero)
Definition: linux.c:768
kdev_t s_bdev
Definition: fs.h:72
unsigned long s_blocksize
Definition: fs.h:67
static struct buffer_head* sb_getblk_zero ( struct super_block sb,
sector_t  block 
)
static

Definition at line 970 of file module.h.

Referenced by Ext2NewBlock(), Ext2NewInode(), and extents_bwrite().

971 {
972  return get_block_bh(sb->s_bdev, block, sb->s_blocksize, 1);
973 }
static unsigned int block
Definition: xmlmemory.c:118
struct buffer_head * get_block_bh(struct block_device *bdev, sector_t block, unsigned long size, int zero)
Definition: linux.c:768
kdev_t s_bdev
Definition: fs.h:72
unsigned long s_blocksize
Definition: fs.h:67
void set_bh_page ( struct buffer_head bh,
struct page page,
unsigned long  offset 
)
static int set_bit ( int  nr,
volatile unsigned long addr 
)
inlinestatic

__set_bit - Set a bit in memory : the bit to set : the address to start counting from

Unlike set_bit(), this function is non-atomic and may be reordered. If it's called on the same region of memory simultaneously, the effect may be that only one operation succeeds.

Definition at line 338 of file module.h.

Referenced by test_and_set_bit().

339 {
340  addr += (nr >> ORDER_PER_LONG);
341  nr &= (BITS_PER_LONG - 1);
342 
343  return !!(InterlockedOr(addr, (1 << nr)) & (1 << nr));
344 }
ULONG nr
Definition: thread.c:7
#define BITS_PER_LONG
Definition: types.h:82
GLenum const GLvoid * addr
Definition: glext.h:9621
#define InterlockedOr
Definition: interlocked.h:224
#define ORDER_PER_LONG
Definition: types.h:83
static int spin_needbreak ( spinlock_t lock)
inlinestatic

Definition at line 316 of file module.h.

317 {
318 #ifdef CONFIG_PREEMPT
319  return spin_is_contended(lock);
320 #else
321  return 0;
322 #endif
323 }
int submit_bh ( int  ,
struct buffer_head  
)

Definition at line 778 of file linux.c.

Referenced by ll_rw_block(), and sync_dirty_buffer().

779 {
780  return submit_bh_pin(rw, bh);
781 }
int rw(char *fname, struct stat *sbp, int force)
Definition: touch.c:291
int submit_bh_pin(int rw, struct buffer_head *bh)
Definition: linux.c:712
int sync_blockdev ( struct block_device bdev)

Definition at line 909 of file linux.c.

Referenced by Ext2RecoverJournal(), and journal_recover().

910 {
911  PEXT2_VCB Vcb = (PEXT2_VCB) bdev->bd_priv;
912  Ext2FlushVolume(NULL, Vcb, FALSE);
913  return 0;
914 }
void * bd_priv
Definition: module.h:544
NTSTATUS Ext2FlushVolume(IN PEXT2_IRP_CONTEXT IrpContext, IN PEXT2_VCB Vcb, IN BOOLEAN bShutDown)
Definition: flush.c:74
#define FALSE
Definition: types.h:117
smooth NULL
Definition: ftsmooth.c:557
struct _EXT2_VCB * PEXT2_VCB
InsertTailList & Vcb
Definition: btrfs.c:2628
int sync_dirty_buffer ( struct buffer_head bh)

Definition at line 888 of file linux.c.

Referenced by journal_convert_superblock_v1(), and journal_update_superblock().

889 {
890  int ret = 0;
891 
892  ASSERT(atomic_read(&bh->b_count) <= 1);
893  lock_buffer(bh);
894  if (test_clear_buffer_dirty(bh)) {
895  get_bh(bh);
896  ret = submit_bh(WRITE, bh);
897  wait_on_buffer(bh);
898  } else {
899  unlock_buffer(bh);
900  }
901  return ret;
902 }
static void get_bh(struct buffer_head *bh)
Definition: module.h:932
ASSERT((InvokeOnSuccess||InvokeOnError||InvokeOnCancel)?(CompletionRoutine!=NULL):TRUE)
atomic_t b_count
Definition: module.h:730
#define atomic_read(v)
Definition: atomic.h:23
static void wait_on_buffer(struct buffer_head *bh)
Definition: module.h:1009
void unlock_buffer(struct buffer_head *bh)
Definition: linux.c:843
int ret
static void lock_buffer(struct buffer_head *bh)
Definition: module.h:1016
#define WRITE
Definition: module.h:1164
int submit_bh(int rw, struct buffer_head *bh)
Definition: linux.c:778
int sync_mapping_buffers ( struct address_space *  mapping)
static int test_and_clear_bit ( int  nr,
volatile unsigned long addr 
)
inlinestatic

test_and_clear_bit - Clear a bit and return its old value : Bit to clear : Address to count from

This operation is atomic and cannot be reordered. It also implies a memory barrier.

Definition at line 373 of file module.h.

374 {
375  return clear_bit(nr, addr);
376 }
ULONG nr
Definition: thread.c:7
static int clear_bit(int nr, volatile unsigned long *addr)
Definition: module.h:357
GLenum const GLvoid * addr
Definition: glext.h:9621
static int test_and_set_bit ( int  nr,
volatile unsigned long addr 
)
inlinestatic

test_and_set_bit - Set a bit and return its old value : Bit to set : Address to count from

This operation is atomic and cannot be reordered. It also implies a memory barrier.

Definition at line 395 of file module.h.

396 {
397  return set_bit(nr, addr);
398 }
ULONG nr
Definition: thread.c:7
GLenum const GLvoid * addr
Definition: glext.h:9621
static int set_bit(int nr, volatile unsigned long *addr)
Definition: module.h:338
static int test_bit ( int  nr,
volatile const unsigned long addr 
)
static

Definition at line 381 of file module.h.

Referenced by __bit_spin_unlock(), __reiserfs_is_journal_aborted(), bit_spin_is_locked(), bit_spin_lock(), and bit_spin_unlock().

382 {
383  return !!((1 << (nr & (BITS_PER_LONG - 1))) &
384  (addr[nr >> ORDER_PER_LONG]));
385 }
ULONG nr
Definition: thread.c:7
#define BITS_PER_LONG
Definition: types.h:82
#define ORDER_PER_LONG
Definition: types.h:83
void thaw_bdev ( struct block_device ,
struct super_block  
)
void truncate_inode_pages ( struct address_space *  ,
loff_t   
)
int try_to_free_buffers ( struct page )
void unload_nls ( struct nls_table )

Definition at line 240 of file nls_base.c.

Referenced by exit_nls_big5(), exit_nls_euc_jp(), exit_nls_euc_kr(), exit_nls_gb2312(), exit_nls_iso8859_8(), exit_nls_koi8_ru(), exit_nls_sjis(), and exit_nls_tis_620().

241 {
242  module_put(nls->owner);
243 }
#define nls
Definition: kernel32.h:13
#define module_put(x)
Definition: module.h:274
void unlock_buffer ( struct buffer_head bh)

Definition at line 843 of file linux.c.

Referenced by do_one_pass(), journal_get_descriptor_buffer(), ll_rw_block(), submit_bh_mdl(), submit_bh_pin(), and sync_dirty_buffer().

844 {
845  clear_buffer_locked(bh);
846 }
void unmap_underlying_metadata ( struct block_device bdev,
sector_t  block 
)
int unregister_nls ( struct nls_table )

Definition at line 185 of file nls_base.c.

Referenced by exit_nls_ascii(), exit_nls_big5(), exit_nls_cp1250(), exit_nls_cp1251(), exit_nls_cp1255(), exit_nls_cp437(), exit_nls_cp737(), exit_nls_cp775(), exit_nls_cp850(), exit_nls_cp852(), exit_nls_cp855(), exit_nls_cp857(), exit_nls_cp860(), exit_nls_cp861(), exit_nls_cp862(), exit_nls_cp863(), exit_nls_cp864(), exit_nls_cp865(), exit_nls_cp866(), exit_nls_cp869(), exit_nls_cp874(), exit_nls_cp932(), exit_nls_cp936(), exit_nls_cp949(), exit_nls_cp950(), exit_nls_euc_jp(), exit_nls_euc_kr(), exit_nls_gb2312(), exit_nls_iso8859_1(), exit_nls_iso8859_13(), exit_nls_iso8859_14(), exit_nls_iso8859_15(), exit_nls_iso8859_2(), exit_nls_iso8859_3(), exit_nls_iso8859_4(), exit_nls_iso8859_5(), exit_nls_iso8859_6(), exit_nls_iso8859_7(), exit_nls_iso8859_8(), exit_nls_iso8859_9(), exit_nls_koi8_r(), exit_nls_koi8_ru(), exit_nls_koi8_u(), exit_nls_sjis(), exit_nls_tis_620(), and exit_nls_utf8().

186 {
187  struct nls_table ** tmp = &tables;
188 
190  while (*tmp) {
191  if (nls == *tmp) {
192  *tmp = nls->next;
194  return 0;
195  }
196  tmp = &(*tmp)->next;
197  }
199  return -EINVAL;
200 }
struct nls_table * next
Definition: module.h:1038
Definition: arc.h:39
#define spin_lock(sl)
Definition: module.h:304
#define nls
Definition: kernel32.h:13
spinlock_t nls_lock
Definition: nls_base.c:23
#define spin_unlock(sl)
Definition: module.h:305
struct define * next
Definition: wpp.c:35
struct nls_table * tables
Definition: nls_base.c:22
int utf8_mbstowcs ( wchar_t ,
const __u8 ,
int   
)

Definition at line 79 of file nls_base.c.

80 {
81  __u16 *op;
82  const __u8 *ip;
83  int size;
84 
85  op = pwcs;
86  ip = s;
87  while (*ip && n > 0) {
88  if (*ip & 0x80) {
89  size = utf8_mbtowc(op, ip, n);
90  if (size == -1) {
91  /* Ignore character and move on */
92  ip++;
93  n--;
94  } else {
95  op++;
96  ip += size;
97  n -= size;
98  }
99  } else {
100  *op++ = *ip++;
101  n--;
102  }
103  }
104  return (int)(op - pwcs);
105 }
unsigned char __u8
Definition: compat.h:88
int utf8_mbtowc(wchar_t *p, const __u8 *s, int n)
Definition: nls_base.c:49
GLuint n
Definition: s_context.h:57
UINT op
Definition: effect.c:219
int ip[4]
Definition: rtl.c:1158
unsigned short __u16
Definition: compat.h:89
GLdouble s
Definition: gl.h:2039
GLsizeiptr size
Definition: glext.h:5919
int utf8_mbtowc ( wchar_t ,
const __u8 ,
int   
)

Definition at line 49 of file nls_base.c.

Referenced by char2uni().

50 {
51  long l;
52  int c0, c, nc;
53  struct utf8_table *t;
54 
55  nc = 0;
56  c0 = *s;
57  l = c0;
58  for (t = utf8_table; t->cmask; t++) {
59  nc++;
60  if ((c0 & t->cmask) == t->cval) {
61  l &= t->lmask;
62  if (l < t->lval)
63  return -1;
64  *p = (wchar_t)l;
65  return nc;
66  }
67  if (n <= nc)
68  return -1;
69  s++;
70  c = (*s ^ 0x80) & 0xFF;
71  if (c & 0xC0)
72  return -1;
73  l = (l << 6) | c;
74  }
75  return -1;
76 }
GLdouble GLdouble t
Definition: gl.h:2047
GLuint n
Definition: s_context.h:57
long lmask
Definition: nls_base.c:33
r l[0]
Definition: byte_order.h:167
GLdouble s
Definition: gl.h:2039
int cmask
Definition: nls_base.c:30
#define c
Definition: ke_i.h:80
#define wchar_t
Definition: wchar.h:102
GLfloat GLfloat p
Definition: glext.h:8902
int cval
Definition: nls_base.c:31
long lval
Definition: nls_base.c:34
int utf8_wcstombs ( __u8 ,
const wchar_t ,
int   
)

Definition at line 136 of file nls_base.c.

137 {
138  const __u16 *ip;
139  __u8 *op;
140  int size;
141 
142  op = s;
143  ip = pwcs;
144  while