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_STRRCHR
 
#define __HAVE_ARCH_STRCHR
 
#define __HAVE_ARCH_MEMCPY
 
#define __HAVE_ARCH_MEMMOVE
 
#define __HAVE_ARCH_MEMCHR
 
#define __HAVE_ARCH_MEMSET
 
#define memset(p, v, n)
 

Functions

charstrrchr (const char *s, int c)
 
charstrchr (const char *s, int c)
 
voidmemcpy (void *, const void *, __kernel_size_t)
 
voidmemmove (void *, const void *, __kernel_size_t)
 
voidmemchr (const void *, int, __kernel_size_t)
 
voidmemset (void *, int, __kernel_size_t)
 
void __memzero (void *ptr, __kernel_size_t n)
 

Macro Definition Documentation

#define __HAVE_ARCH_MEMCHR

Definition at line 21 of file string.h.

#define __HAVE_ARCH_MEMCPY

Definition at line 15 of file string.h.

#define __HAVE_ARCH_MEMMOVE

Definition at line 18 of file string.h.

#define __HAVE_ARCH_MEMSET

Definition at line 24 of file string.h.

#define __HAVE_ARCH_STRCHR

Definition at line 12 of file string.h.

#define __HAVE_ARCH_STRRCHR

Definition at line 9 of file string.h.

#define memset (   p,
  v,
  n 
)
Value:
({ \
void *__p = (p); size_t __n = n; \
if ((__n) != 0) { \
if (__builtin_constant_p((v)) && (v) == 0) \
__memzero((__p),(__n)); \
memset((__p),(v),(__n)); \
} \
(__p); \
})

Definition at line 29 of file string.h.

Function Documentation

void __memzero ( void ptr,
__kernel_size_t  n 
)

Definition at line 124 of file string.c.

void* memchr ( const void s,
int  c,
size_t  n 
)

memchr - Find a character in an area of memory. : The memory area : The byte to search for
: The size of the area.

returns the address of the first occurrence of , or NULL if is not found

Definition at line 96 of file string.c.

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.

char* strchr ( const char s,
int  c 
)

strchr - Find the first occurrence of a character in a string : The string to be searched : The character to search for

Definition at line 106 of file string.c.

char* strrchr ( const char s,
int  c 
)

strrchr - Find the last occurrence of a character in a string : The string to be searched : The character to search for

Definition at line 226 of file string.c.