Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
kstrtox.c File Reference
#include <linux/ctype.h>
#include <linux/errno.h>
#include <linux/kernel.h>
#include <linux/math64.h>
#include <linux/export.h>
#include <linux/types.h>
#include <asm/uaccess.h>
#include "kstrtox.h"

Go to the source code of this file.

Macros

#define kstrto_from_user(f, g, type)
 

Functions

const char_parse_integer_fixup_radix (const char *s, unsigned int *base)
 
unsigned int _parse_integer (const char *s, unsigned int base, unsigned long long *p)
 
int kstrtoull (const char *s, unsigned int base, unsigned long long *res)
 
 EXPORT_SYMBOL (kstrtoull)
 
int kstrtoll (const char *s, unsigned int base, long long *res)
 
 EXPORT_SYMBOL (kstrtoll)
 
int _kstrtoul (const char *s, unsigned int base, unsigned long *res)
 
 EXPORT_SYMBOL (_kstrtoul)
 
int _kstrtol (const char *s, unsigned int base, long *res)
 
 EXPORT_SYMBOL (_kstrtol)
 
int kstrtouint (const char *s, unsigned int base, unsigned int *res)
 
 EXPORT_SYMBOL (kstrtouint)
 
int kstrtoint (const char *s, unsigned int base, int *res)
 
 EXPORT_SYMBOL (kstrtoint)
 
int kstrtou16 (const char *s, unsigned int base, u16 *res)
 
 EXPORT_SYMBOL (kstrtou16)
 
int kstrtos16 (const char *s, unsigned int base, s16 *res)
 
 EXPORT_SYMBOL (kstrtos16)
 
int kstrtou8 (const char *s, unsigned int base, u8 *res)
 
 EXPORT_SYMBOL (kstrtou8)
 
int kstrtos8 (const char *s, unsigned int base, s8 *res)
 
 EXPORT_SYMBOL (kstrtos8)
 
 kstrto_from_user (kstrtoull_from_user, kstrtoull, unsigned long long)
 
 kstrto_from_user (kstrtoll_from_user, kstrtoll, long long)
 
 kstrto_from_user (kstrtoul_from_user, kstrtoul, unsigned long)
 
 kstrto_from_user (kstrtol_from_user, kstrtol, long)
 
 kstrto_from_user (kstrtouint_from_user, kstrtouint, unsigned int)
 
 kstrto_from_user (kstrtoint_from_user, kstrtoint, int)
 
 kstrto_from_user (kstrtou16_from_user, kstrtou16, u16)
 
 kstrto_from_user (kstrtos16_from_user, kstrtos16, s16)
 
 kstrto_from_user (kstrtou8_from_user, kstrtou8, u8)
 
 kstrto_from_user (kstrtos8_from_user, kstrtos8, s8)
 

Macro Definition Documentation

#define kstrto_from_user (   f,
  g,
  type 
)
Value:
int f(const char __user *s, size_t count, unsigned int base, type *res) \
{ \
/* sign, base 2 representation, newline, terminator */ \
char buf[1 + sizeof(type) * 8 + 1 + 1]; \
\
count = min(count, sizeof(buf) - 1); \
return -EFAULT; \
buf[count] = '\0'; \
return g(buf, base, res); \
} \
EXPORT_SYMBOL(f)

Definition at line 261 of file kstrtox.c.

Function Documentation

int _kstrtol ( const char s,
unsigned int  base,
long res 
)

Definition at line 156 of file kstrtox.c.

int _kstrtoul ( const char s,
unsigned int  base,
unsigned long res 
)

Definition at line 140 of file kstrtox.c.

unsigned int _parse_integer ( const char s,
unsigned int  base,
unsigned long long p 
)

Definition at line 47 of file kstrtox.c.

const char* _parse_integer_fixup_radix ( const char s,
unsigned int base 
)

Definition at line 23 of file kstrtox.c.

EXPORT_SYMBOL ( kstrtoull  )
EXPORT_SYMBOL ( kstrtoll  )
EXPORT_SYMBOL ( _kstrtoul  )
EXPORT_SYMBOL ( _kstrtol  )
EXPORT_SYMBOL ( kstrtouint  )
EXPORT_SYMBOL ( kstrtoint  )
EXPORT_SYMBOL ( kstrtou16  )
EXPORT_SYMBOL ( kstrtos16  )
EXPORT_SYMBOL ( kstrtou8  )
EXPORT_SYMBOL ( kstrtos8  )
kstrto_from_user ( kstrtoull_from_user  ,
kstrtoull  ,
unsigned long  long 
)
kstrto_from_user ( kstrtoll_from_user  ,
kstrtoll  ,
long  long 
)
kstrto_from_user ( kstrtoul_from_user  ,
kstrtoul  ,
unsigned  long 
)
kstrto_from_user ( kstrtol_from_user  ,
kstrtol  ,
long   
)
kstrto_from_user ( kstrtouint_from_user  ,
kstrtouint  ,
unsigned  int 
)
kstrto_from_user ( kstrtoint_from_user  ,
kstrtoint  ,
int   
)
kstrto_from_user ( kstrtou16_from_user  ,
kstrtou16  ,
u16   
)
kstrto_from_user ( kstrtos16_from_user  ,
kstrtos16  ,
s16   
)
kstrto_from_user ( kstrtou8_from_user  ,
kstrtou8  ,
u8   
)
kstrto_from_user ( kstrtos8_from_user  ,
kstrtos8  ,
s8   
)
int kstrtoint ( const char s,
unsigned int  base,
int res 
)

Definition at line 186 of file kstrtox.c.

int kstrtoll ( const char s,
unsigned int  base,
long long res 
)

Definition at line 115 of file kstrtox.c.

int kstrtos16 ( const char s,
unsigned int  base,
s16 res 
)

Definition at line 216 of file kstrtox.c.

int kstrtos8 ( const char s,
unsigned int  base,
s8 res 
)

Definition at line 246 of file kstrtox.c.

int kstrtou16 ( const char s,
unsigned int  base,
u16 res 
)

Definition at line 201 of file kstrtox.c.

int kstrtou8 ( const char s,
unsigned int  base,
u8 res 
)

Definition at line 231 of file kstrtox.c.

int kstrtouint ( const char s,
unsigned int  base,
unsigned int res 
)

Definition at line 171 of file kstrtox.c.

int kstrtoull ( const char s,
unsigned int  base,
unsigned long long res 
)

Definition at line 107 of file kstrtox.c.