Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
user.h File Reference
#include <generated/asm-offsets.h>
#include <stddef.h>

Go to the source code of this file.

Macros

#define ARRAY_SIZE(x)   (sizeof(x) / sizeof((x)[0]))
 
#define UM_KERN_EMERG   KERN_EMERG
 
#define UM_KERN_ALERT   KERN_ALERT
 
#define UM_KERN_CRIT   KERN_CRIT
 
#define UM_KERN_ERR   KERN_ERR
 
#define UM_KERN_WARNING   KERN_WARNING
 
#define UM_KERN_NOTICE   KERN_NOTICE
 
#define UM_KERN_INFO   KERN_INFO
 
#define UM_KERN_DEBUG   KERN_DEBUG
 
#define UM_KERN_CONT   KERN_CONT
 
#define barrier()   __asm__ __volatile__("": : :"memory")
 

Functions

void panic (const char *fmt,...) __attribute__((format(printf
 
int in_aton (char *str)
 
size_t strlcpy (char *, const char *, size_t)
 
size_t strlcat (char *, const char *, size_t)
 

Macro Definition Documentation

#define ARRAY_SIZE (   x)    (sizeof(x) / sizeof((x)[0]))

Definition at line 17 of file user.h.

#define barrier (   void)    __asm__ __volatile__("": : :"memory")

Definition at line 55 of file user.h.

#define UM_KERN_ALERT   KERN_ALERT

Definition at line 31 of file user.h.

#define UM_KERN_CONT   KERN_CONT

Definition at line 38 of file user.h.

#define UM_KERN_CRIT   KERN_CRIT

Definition at line 32 of file user.h.

#define UM_KERN_DEBUG   KERN_DEBUG

Definition at line 37 of file user.h.

#define UM_KERN_EMERG   KERN_EMERG

Definition at line 30 of file user.h.

#define UM_KERN_ERR   KERN_ERR

Definition at line 33 of file user.h.

#define UM_KERN_INFO   KERN_INFO

Definition at line 36 of file user.h.

#define UM_KERN_NOTICE   KERN_NOTICE

Definition at line 35 of file user.h.

#define UM_KERN_WARNING   KERN_WARNING

Definition at line 34 of file user.h.

Function Documentation

int in_aton ( char str)
void panic ( const char fmt,
  ... 
)
size_t strlcat ( char dest,
const char src,
size_t  count 
)

strlcat - Append a length-limited, NUL-terminated string to another : The string to be appended to : The string to append to it
: The size of the destination buffer.

strlcat - Append a length-limited, NUL-terminated string to another : The string to be appended to : The string to append to it : The size of the destination buffer.

Definition at line 154 of file string.c.

size_t strlcpy ( char dest,
const char src,
size_t  size 
)

strlcpy - Copy a NUL terminated string into a sized buffer : Where to copy the string to : Where to copy the string from : size of destination buffer

Compatible with *BSD: the result is always a valid NUL-terminated string that fits in the buffer (unless, of course, the buffer size is zero). It does not pad out the result like strncpy() does.

Definition at line 94 of file string.c.