Linux Kernel
3.7.1
|
#include <stdarg.h>
#include <linux/module.h>
#include <linux/types.h>
#include <linux/string.h>
#include <linux/ctype.h>
#include <linux/kernel.h>
#include <linux/kallsyms.h>
#include <linux/uaccess.h>
#include <linux/ioport.h>
#include <net/addrconf.h>
#include <asm/page.h>
#include <asm/div64.h>
#include <asm/sections.h>
#include "kstrtox.h"
Go to the source code of this file.
Data Structures | |
struct | printf_spec |
Macros | |
#define | ZEROPAD 1 /* pad with zero */ |
#define | SIGN 2 /* unsigned/signed long */ |
#define | PLUS 4 /* show plus */ |
#define | SPACE 8 /* space if plus */ |
#define | LEFT 16 /* left justified */ |
#define | SMALL 32 /* use lowercase in hex (must be 32 == 0x20) */ |
#define | SPECIAL 64 /* prefix hex with "0x", octal with "0" */ |
#define | IO_RSRC_PRINTK_SIZE 6 |
#define | MEM_RSRC_PRINTK_SIZE 10 |
#define | RSRC_BUF_SIZE ((2 * sizeof(resource_size_t)) + 4) |
#define | FLAG_BUF_SIZE (2 * sizeof(res->flags)) |
#define | DECODED_BUF_SIZE sizeof("[mem - 64bit pref window disabled]") |
#define | RAW_BUF_SIZE sizeof("[mem - flags 0x]") |
Variables | |
int kptr_restrict | __read_mostly |
#define DECODED_BUF_SIZE sizeof("[mem - 64bit pref window disabled]") |
#define IO_RSRC_PRINTK_SIZE 6 |
#define LEFT 16 /* left justified */ |
Definition at line 335 of file vsprintf.c.
#define MEM_RSRC_PRINTK_SIZE 10 |
#define PLUS 4 /* show plus */ |
Definition at line 333 of file vsprintf.c.
#define RSRC_BUF_SIZE ((2 * sizeof(resource_size_t)) + 4) |
#define SIGN 2 /* unsigned/signed long */ |
Definition at line 332 of file vsprintf.c.
#define SMALL 32 /* use lowercase in hex (must be 32 == 0x20) */ |
Definition at line 336 of file vsprintf.c.
#define SPACE 8 /* space if plus */ |
Definition at line 334 of file vsprintf.c.
#define SPECIAL 64 /* prefix hex with "0x", octal with "0" */ |
Definition at line 337 of file vsprintf.c.
Definition at line 331 of file vsprintf.c.
enum format_type |
Definition at line 339 of file vsprintf.c.
EXPORT_SYMBOL | ( | simple_strtoull | ) |
EXPORT_SYMBOL | ( | simple_strtoul | ) |
EXPORT_SYMBOL | ( | simple_strtol | ) |
EXPORT_SYMBOL | ( | simple_strtoll | ) |
EXPORT_SYMBOL | ( | vsnprintf | ) |
EXPORT_SYMBOL | ( | vscnprintf | ) |
EXPORT_SYMBOL | ( | snprintf | ) |
EXPORT_SYMBOL | ( | scnprintf | ) |
EXPORT_SYMBOL | ( | vsprintf | ) |
EXPORT_SYMBOL | ( | sprintf | ) |
EXPORT_SYMBOL | ( | vsscanf | ) |
EXPORT_SYMBOL | ( | sscanf | ) |
Definition at line 311 of file vsprintf.c.
scnprintf - Format a string and place it in a buffer : The buffer to place the result into : The size of the buffer, including the trailing null space : The format string to use ..: Arguments for the format string
The return value is the number of characters written into not including the trailing '\0'. If is == 0 the function returns 0.
Definition at line 1596 of file vsprintf.c.
snprintf - Format a string and place it in a buffer : The buffer to place the result into : The size of the buffer, including the trailing null space : The format string to use ..: Arguments for the format string
The return value is the number of characters which would be generated for the given input, excluding the trailing null, as per ISO C99. If the return is greater than or equal to , the resulting string is truncated.
See the vsnprintf() documentation for format string extensions over C99.
Definition at line 1572 of file vsprintf.c.
sprintf - Format a string and place it in a buffer : The buffer to place the result into : The format string to use ..: Arguments for the format string
The function returns the number of characters written into . Use snprintf() or scnprintf() in order to avoid buffer overflows.
See the vsnprintf() documentation for format string extensions over C99.
Definition at line 1641 of file vsprintf.c.
sscanf - Unformat a buffer into a list of arguments : input buffer : formatting of buffer ..: resulting arguments
Definition at line 2228 of file vsprintf.c.
vscnprintf - Format a string and place it in a buffer : The buffer to place the result into : The size of the buffer, including the trailing null space : The format string to use : Arguments for the format string
The return value is the number of characters which have been written into the not including the trailing '\0'. If is == 0 the function returns 0.
If you're not already dealing with a va_list consider using scnprintf().
See the vsnprintf() documentation for format string extensions over C99.
Definition at line 1544 of file vsprintf.c.
vsnprintf - Format a string and place it in a buffer : The buffer to place the result into : The size of the buffer, including the trailing null space : The format string to use : Arguments for the format string
This function follows C99 vsnprintf, but has some extensions: pS output the name of a text symbol with offset ps output the name of a text symbol without offset pF output the name of a function pointer with its offset pf output the name of a function pointer without its offset pB output the name of a backtrace symbol with its offset pR output the address range in a struct resource with decoded flags pr output the address range in a struct resource with raw flags pM output a 6-byte MAC address with colons pMR output a 6-byte MAC address with colons in reversed order pMF output a 6-byte MAC address with dashes pm output a 6-byte MAC address without colons pmR output a 6-byte MAC address without colons in reversed order pI4 print an IPv4 address without leading zeros pi4 print an IPv4 address with leading zeros pI6 print an IPv6 address with colons pi6 print an IPv6 address without colons pI6c print an IPv6 address as specified by RFC 5952 pU[bBlL] print a UUID/GUID in big or little endian using lower or upper case. %*ph[CDN] a variable-length hex string with a separator (supports up to 64 bytes of the input) n is ignored
** Please update Documentation/printk-formats.txt when making changes **
The return value is the number of characters which would be generated for the given input, excluding the trailing '\0', as per ISO C99. If you want to have the exact number of characters written into as return value (not including the trailing '\0'), use vscnprintf(). If the return is greater than or equal to , the resulting string is truncated.
If you're not already dealing with a va_list consider using snprintf().
Definition at line 1368 of file vsprintf.c.
vsprintf - Format a string and place it in a buffer : The buffer to place the result into : The format string to use : Arguments for the format string
The function returns the number of characters written into . Use vsnprintf() or vscnprintf() in order to avoid buffer overflows.
If you're not already dealing with a va_list consider using sprintf().
See the vsnprintf() documentation for format string extensions over C99.
Definition at line 1623 of file vsprintf.c.
vsscanf - Unformat a buffer into a list of arguments : input buffer : format of buffer : arguments
Definition at line 2009 of file vsprintf.c.
int kptr_restrict __read_mostly |
Definition at line 969 of file vsprintf.c.