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

Go to the source code of this file.

Macros

#define __HAVE_ARCH_MEMSET
 
#define __HAVE_ARCH_MEMCPY
 
#define __HAVE_ARCH_MEMMOVE
 
#define struct_cpy(x, y)
 

Functions

voidmemset (void *dest, int ch, size_t count)
 
voidmemcpy (void *dest, const void *src, size_t count)
 
voidmemmove (void *dest, const void *src, size_t count)
 
void __struct_cpy_bug (void)
 

Macro Definition Documentation

#define __HAVE_ARCH_MEMCPY

Definition at line 16 of file string.h.

#define __HAVE_ARCH_MEMMOVE

Definition at line 17 of file string.h.

#define __HAVE_ARCH_MEMSET

Definition at line 15 of file string.h.

#define struct_cpy (   x,
  y 
)
Value:
({ \
if (sizeof(*(x)) != sizeof(*(y))) \
__struct_cpy_bug; \
memcpy(x, y, sizeof(*(x))); \
})

Definition at line 25 of file string.h.

Function Documentation

void __struct_cpy_bug ( void  )
void* memcpy ( void dest,
const void src,
size_t  count 
)

memcpy - Copy one area of memory to another : Where to copy to : Where to copy from : The size of the area.

You should not use this function to access IO space, use memcpy_toio() or memcpy_fromio() instead.

Definition at line 151 of file memcpy.c.

void* memmove ( void dest,
const void src,
size_t  count 
)

memmove - Copy one area of memory to another : Where to copy to : Where to copy from : The size of the area.

Unlike memcpy(), memmove() copes with overlapping areas.

Definition at line 10 of file memmove.c.

void* memset ( void s,
int  c,
size_t  count 
)

memset - Fill a region of memory with the given value : Pointer to the start of the area. : The byte to fill the area with : The size of the area.

Do not use memset() to access IO space, use memset_io() instead.

Definition at line 116 of file string.c.