Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros
gcclib.h File Reference

Go to the source code of this file.

Data Structures

struct  DIstruct
 
union  DIunion
 

Macros

#define BITS_PER_UNIT   8
 
#define SI_TYPE_SIZE   (sizeof (SItype) * BITS_PER_UNIT)
 

Typedefs

: file name

struct logfs_disk_dentry - on-medium dentry structure

: inode number : length of file name : file type, identical to bits 12..15 of mode

typedef unsigned int UQItype __attribute__ ((mode(QI)))
 

Macro Definition Documentation

#define BITS_PER_UNIT   8

Definition at line 7 of file gcclib.h.

#define SI_TYPE_SIZE   (sizeof (SItype) * BITS_PER_UNIT)

Definition at line 8 of file gcclib.h.

Typedef Documentation

mimd_t : Old style ioctl packet structure (deprecated)

: : : : : : : : : : : : :

Note : This structure is DEPRECATED. New applications must use : uioc_t structure instead. All new hba drivers use the new : format. If we get this mimd packet, we will convert it into : new uioc_t format and send it to the hba drivers.

read_boot_clock - Return time of the system start.

Weak dummy function for arches that do not yet support it. Function to read the exact time the system has been started. Returns a timespec with tv_sec=0 and tv_nsec=0 if unsupported.

XXX - Do be sure to remove it once all arches implement it.

__iowrite64_copy - copy data to MMIO space, in 64-bit or 32-bit units : destination, in MMIO space (must be 64-bit aligned) : source (must be 64-bit aligned) : number of 64-bit quantities to copy

Copy data from kernel space to MMIO space, in units of 32 or 64 bits at a time. Order of access is not guaranteed, nor is a memory barrier performed afterwards.

get_user_pages_fast() - pin user pages in memory : starting user address : number of pages from start to pin : whether pages will be written to : array that receives pointers to the pages pinned. Should be at least nr_pages long.

Returns number of pages pinned. This may be fewer than the number requested. If nr_pages is 0 or negative, returns 0. If no pages were pinned, returns -errno.

get_user_pages_fast provides equivalent functionality to get_user_pages, operating on current and current->mm, with force=0 and vma=NULL. However unlike get_user_pages, it must be called without mmap_sem held.

get_user_pages_fast may take mmap_sem and page table locks, so no assumptions can be made about lack of locking. get_user_pages_fast is to be implemented in a way that is advantageous (vs get_user_pages()) when the user memory area is already faulted in and present in ptes. However if the pages have to be faulted in, it may turn out to be slightly slower so callers need to carefully consider what to use. On many architectures, get_user_pages_fast simply falls back to get_user_pages.

Definition at line 10 of file gcclib.h.