param.c File Reference

Go to the source code of this file.

Defines

#define STANDARD_PARAM_DEF(name, type, format, tmptype, strtolfn)

Functions

 STANDARD_PARAM_DEF (byte, unsigned char,"%c", unsigned long, simple_strtoul)
 STANDARD_PARAM_DEF (short, short,"%hi", long, simple_strtol)
 STANDARD_PARAM_DEF (ushort, unsigned short,"%hu", unsigned long, simple_strtoul)
 STANDARD_PARAM_DEF (int, int,"%i", long, simple_strtol)
 STANDARD_PARAM_DEF (uint, unsigned int,"%u", unsigned long, simple_strtoul)
 STANDARD_PARAM_DEF (long, long,"%li", long, simple_strtol)
 STANDARD_PARAM_DEF (ulong, unsigned long,"%lu", unsigned long, simple_strtoul)
int printk_ratelimit (void)


Define Documentation

#define STANDARD_PARAM_DEF ( name,
type,
format,
tmptype,
strtolfn   ) 

Value:

int param_set_##name(const char *val, struct kernel_param *kp)  \
        {                                                               \
                return 0;                                               \
        }                                                               \
        int param_get_##name(char *buffer, struct kernel_param *kp)     \
        { \
                return 0;\
        }

Definition at line 11 of file param.c.


Function Documentation

int printk_ratelimit ( void   ) 

Definition at line 29 of file param.c.

STANDARD_PARAM_DEF ( ulong  ,
unsigned  long,
"%lu"  ,
unsigned  long,
simple_strtoul   
)

STANDARD_PARAM_DEF ( long  ,
long  ,
"%li"  ,
long  ,
simple_strtol   
)

STANDARD_PARAM_DEF ( uint  ,
unsigned  int,
"%u"  ,
unsigned  long,
simple_strtoul   
)

STANDARD_PARAM_DEF ( int  ,
int  ,
"%i"  ,
long  ,
simple_strtol   
)

STANDARD_PARAM_DEF ( ushort  ,
unsigned  short,
"%hu"  ,
unsigned  long,
simple_strtoul   
)

STANDARD_PARAM_DEF ( short  ,
short  ,
"%hi"  ,
long  ,
simple_strtol   
)

STANDARD_PARAM_DEF ( byte  ,
unsigned  char,
"%c"  ,
unsigned  long,
simple_strtoul   
)


Generated on Wed Apr 11 06:39:15 2012 for DDE - The L4 Device Driver Environment by  doxygen 1.5.6