Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
string.h File Reference
#include <linux/types.h>
#include <linux/compiler.h>

Go to the source code of this file.

Macros

#define __HAVE_ARCH_STRLEN
 
#define strlen(s)
 
#define __HAVE_ARCH_STRNLEN
 
#define __HAVE_ARCH_STRCPY
 
#define strcpy(d, s)   __kernel_strcpy(d, s)
 
#define __HAVE_ARCH_STRNCPY
 
#define __HAVE_ARCH_STRCAT
 
#define strcat(d, s)
 
#define __HAVE_ARCH_STRCMP
 
#define __HAVE_ARCH_MEMMOVE
 
#define memcmp(d, s, n)   __builtin_memcmp(d, s, n)
 
#define __HAVE_ARCH_MEMSET
 
#define memset(d, c, n)   __builtin_memset(d, c, n)
 
#define __HAVE_ARCH_MEMCPY
 
#define memcpy(d, s, n)   __builtin_memcpy(d, s, n)
 

Functions

voidmemmove (void *, const void *, __kernel_size_t)
 
voidmemset (void *, int, __kernel_size_t)
 
voidmemcpy (void *, const void *, __kernel_size_t)
 

Macro Definition Documentation

#define __HAVE_ARCH_MEMCPY

Definition at line 113 of file string.h.

#define __HAVE_ARCH_MEMMOVE

Definition at line 104 of file string.h.

#define __HAVE_ARCH_MEMSET

Definition at line 109 of file string.h.

#define __HAVE_ARCH_STRCAT

Definition at line 78 of file string.h.

#define __HAVE_ARCH_STRCMP

Definition at line 85 of file string.h.

#define __HAVE_ARCH_STRCPY

Definition at line 51 of file string.h.

#define __HAVE_ARCH_STRLEN

Definition at line 30 of file string.h.

#define __HAVE_ARCH_STRNCPY

Definition at line 61 of file string.h.

#define __HAVE_ARCH_STRNLEN

Definition at line 35 of file string.h.

#define memcmp (   d,
  s,
  n 
)    __builtin_memcmp(d, s, n)

Definition at line 107 of file string.h.

#define memcpy (   d,
  s,
  n 
)    __builtin_memcpy(d, s, n)

Definition at line 115 of file string.h.

#define memset (   d,
  c,
  n 
)    __builtin_memset(d, c, n)

Definition at line 111 of file string.h.

#define strcat (   d,
  s 
)
Value:
({ \
char *__d = (d); \
strcpy(__d + strlen(__d), (s)); \
})

Definition at line 79 of file string.h.

#define strcpy (   d,
  s 
)    __kernel_strcpy(d, s)

Definition at line 58 of file string.h.

#define strlen (   s)
Value:
(__builtin_constant_p(s) ? \
__builtin_strlen(s) : \
__kernel_strlen(s))

Definition at line 31 of file string.h.

Function Documentation

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.