|
#define | USHRT_MAX ((u16)(~0U)) |
|
#define | SHRT_MAX ((s16)(USHRT_MAX>>1)) |
|
#define | SHRT_MIN ((s16)(-SHRT_MAX - 1)) |
|
#define | INT_MAX ((int)(~0U>>1)) |
|
#define | INT_MIN (-INT_MAX - 1) |
|
#define | UINT_MAX (~0U) |
|
#define | LONG_MAX ((long)(~0UL>>1)) |
|
#define | LONG_MIN (-LONG_MAX - 1) |
|
#define | ULONG_MAX (~0UL) |
|
#define | LLONG_MAX ((long long)(~0ULL>>1)) |
|
#define | LLONG_MIN (-LLONG_MAX - 1) |
|
#define | ULLONG_MAX (~0ULL) |
|
#define | SIZE_MAX (~(size_t)0) |
|
#define | STACK_MAGIC 0xdeadbeef |
|
#define | REPEAT_BYTE(x) ((~0ul / 0xff) * (x)) |
|
#define | ALIGN(x, a) __ALIGN_KERNEL((x), (a)) |
|
#define | __ALIGN_MASK(x, mask) __ALIGN_KERNEL_MASK((x), (mask)) |
|
#define | PTR_ALIGN(p, a) ((typeof(p))ALIGN((unsigned long)(p), (a))) |
|
#define | IS_ALIGNED(x, a) (((x) & ((typeof(x))(a) - 1)) == 0) |
|
#define | ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) |
|
#define | __round_mask(x, y) ((__typeof__(x))((y)-1)) |
|
#define | round_up(x, y) ((((x)-1) | __round_mask(x, y))+1) |
|
#define | round_down(x, y) ((x) & ~__round_mask(x, y)) |
|
#define | FIELD_SIZEOF(t, f) (sizeof(((t*)0)->f)) |
|
#define | DIV_ROUND_UP(n, d) (((n) + (d) - 1) / (d)) |
|
#define | DIV_ROUND_UP_ULL(ll, d) ({ unsigned long long _tmp = (ll)+(d)-1; do_div(_tmp, d); _tmp; }) |
|
#define | DIV_ROUND_UP_SECTOR_T(ll, d) DIV_ROUND_UP(ll,d) |
|
#define | roundup(x, y) |
|
#define | rounddown(x, y) |
|
#define | DIV_ROUND_CLOSEST(x, divisor) |
|
#define | mult_frac(x, numer, denom) |
|
#define | _RET_IP_ (unsigned long)__builtin_return_address(0) |
|
#define | _THIS_IP_ ({ __label__ __here; __here: (unsigned long)&&__here; }) |
|
#define | sector_div(n, b) |
|
#define | upper_32_bits(n) ((u32)(((n) >> 16) >> 16)) |
|
#define | lower_32_bits(n) ((u32)(n)) |
|
#define | might_resched() do { } while (0) |
|
#define | might_sleep() do { might_resched(); } while (0) |
|
#define | might_sleep_if(cond) do { if (cond) might_sleep(); } while (0) |
|
#define | abs(x) |
|
#define | abs64(x) |
|
#define | strict_strtoul kstrtoul |
|
#define | strict_strtol kstrtol |
|
#define | strict_strtoull kstrtoull |
|
#define | strict_strtoll kstrtoll |
|
#define | TAINT_PROPRIETARY_MODULE 0 |
|
#define | TAINT_FORCED_MODULE 1 |
|
#define | TAINT_UNSAFE_SMP 2 |
|
#define | TAINT_FORCED_RMMOD 3 |
|
#define | TAINT_MACHINE_CHECK 4 |
|
#define | TAINT_BAD_PAGE 5 |
|
#define | TAINT_USER 6 |
|
#define | TAINT_DIE 7 |
|
#define | TAINT_OVERRIDDEN_ACPI_TABLE 8 |
|
#define | TAINT_WARN 9 |
|
#define | TAINT_CRAP 10 |
|
#define | TAINT_FIRMWARE_WORKAROUND 11 |
|
#define | TAINT_OOT_MODULE 12 |
|
#define | hex_asc_lo(x) hex_asc[((x) & 0x0f)] |
|
#define | hex_asc_hi(x) hex_asc[((x) & 0xf0) >> 4] |
|
#define | min(x, y) |
|
#define | max(x, y) |
|
#define | min3(x, y, z) |
|
#define | max3(x, y, z) |
|
#define | min_not_zero(x, y) |
|
#define | clamp(val, min, max) |
|
#define | min_t(type, x, y) |
|
#define | max_t(type, x, y) |
|
#define | clamp_t(type, val, min, max) |
|
#define | clamp_val(val, min, max) |
|
#define | swap(a, b) do { typeof(a) __tmp = (a); (a) = (b); (b) = __tmp; } while (0) |
|
#define | container_of(ptr, type, member) |
|
#define | __FUNCTION__ (__func__) |
|
#define | NUMA_BUILD 0 |
|
#define | COMPACTION_BUILD 0 |
|
#define | SYMBOL_PREFIX "" |
|
|
| __printf (1, 2) void panic(const char *fmt |
|
void | oops_enter (void) |
|
void | oops_exit (void) |
|
void | print_oops_end_marker (void) |
|
int | oops_may_print (void) |
|
void | do_exit (long error_code) __noreturn |
|
void | complete_and_exit (struct completion *, long) __noreturn |
|
int __must_check | _kstrtoul (const char *s, unsigned int base, unsigned long *res) |
|
int __must_check | _kstrtol (const char *s, unsigned int base, long *res) |
|
int __must_check | kstrtoull (const char *s, unsigned int base, unsigned long long *res) |
|
int __must_check | kstrtoll (const char *s, unsigned int base, long long *res) |
|
int __must_check | kstrtouint (const char *s, unsigned int base, unsigned int *res) |
|
int __must_check | kstrtoint (const char *s, unsigned int base, int *res) |
|
int __must_check | kstrtou16 (const char *s, unsigned int base, u16 *res) |
|
int __must_check | kstrtos16 (const char *s, unsigned int base, s16 *res) |
|
int __must_check | kstrtou8 (const char *s, unsigned int base, u8 *res) |
|
int __must_check | kstrtos8 (const char *s, unsigned int base, s8 *res) |
|
int __must_check | kstrtoull_from_user (const char __user *s, size_t count, unsigned int base, unsigned long long *res) |
|
int __must_check | kstrtoll_from_user (const char __user *s, size_t count, unsigned int base, long long *res) |
|
int __must_check | kstrtoul_from_user (const char __user *s, size_t count, unsigned int base, unsigned long *res) |
|
int __must_check | kstrtol_from_user (const char __user *s, size_t count, unsigned int base, long *res) |
|
int __must_check | kstrtouint_from_user (const char __user *s, size_t count, unsigned int base, unsigned int *res) |
|
int __must_check | kstrtoint_from_user (const char __user *s, size_t count, unsigned int base, int *res) |
|
int __must_check | kstrtou16_from_user (const char __user *s, size_t count, unsigned int base, u16 *res) |
|
int __must_check | kstrtos16_from_user (const char __user *s, size_t count, unsigned int base, s16 *res) |
|
int __must_check | kstrtou8_from_user (const char __user *s, size_t count, unsigned int base, u8 *res) |
|
int __must_check | kstrtos8_from_user (const char __user *s, size_t count, unsigned int base, s8 *res) |
|
unsigned long | simple_strtoul (const char *, char **, unsigned int) |
|
long | simple_strtol (const char *, char **, unsigned int) |
|
unsigned long long | simple_strtoull (const char *, char **, unsigned int) |
|
long long | simple_strtoll (const char *, char **, unsigned int) |
|
int | num_to_str (char *buf, int size, unsigned long long num) |
|
| __printf (2, 3) int sprintf(char *buf |
|
const char | __printf (2, 0) int vsprintf(char *buf |
|
| __printf (3, 4) int snprintf(char *buf |
|
size_t const char | __printf (3, 0) int vsnprintf(char *buf |
|
const char char * | kvasprintf (gfp_t gfp, const char *fmt, va_list args) |
|
| __scanf (2, 3) int sscanf(const char * |
|
const char | __scanf (2, 0) int vsscanf(const char * |
|
int | get_option (char **str, int *pint) |
|
char * | get_options (const char *str, int nints, int *ints) |
|
unsigned long long | memparse (const char *ptr, char **retptr) |
|
int | core_kernel_text (unsigned long addr) |
|
int | core_kernel_data (unsigned long addr) |
|
int | __kernel_text_address (unsigned long addr) |
|
int | kernel_text_address (unsigned long addr) |
|
int | func_ptr_is_kernel_text (void *ptr) |
|
struct pid * | session_of_pgrp (struct pid *pgrp) |
|
unsigned long | int_sqrt (unsigned long) |
|
void | bust_spinlocks (int yes) |
|
void | wake_up_klogd (void) |
|
const char * | print_tainted (void) |
|
void | add_taint (unsigned flag) |
|
int | test_taint (unsigned flag) |
|
unsigned long | get_taint (void) |
|
int | hex_to_bin (char ch) |
|
int __must_check | hex2bin (u8 *dst, const char *src, size_t count) |
|
int | do_sysinfo (struct sysinfo *info) |
|
int core_kernel_data |
( |
unsigned long |
addr | ) |
|
core_kernel_data - tell if addr points to kernel data : address to test
Returns true if passed in is from the core kernel data section.
Note: On some archs it may return true for core RODATA, and false for others. But will always be true for core RW data.
Definition at line 91 of file extable.c.
get_option - Parse integer from an option string : option string : (output) integer value parsed from
Read an int from an option string; if available accept a subsequent comma as well.
Return values: 0 - no int in string 1 - int found, no subsequent comma 2 - int found including a subsequent comma 3 - hyphen found to denote a range
Definition at line 52 of file cmdline.c.
get_options - Parse a string into a list of integers : String to be parsed : size of integer array : integer array
This function parses a string containing a comma-separated list of integers, a hyphen-separated range of positive integers, or a combination of both. The parse halts when the array is full, or when no more numbers can be retrieved from the string.
Return value is the character in the string which caused the parse to end (typically a null terminator, if is completely parseable).
Definition at line 88 of file cmdline.c.
memparse - parse a string with mem suffixes into a number : Where parse begins : (output) Optional pointer to next char after parse completes
Parses a string into a number. The number stored at is potentially suffixed with K (for kilobytes, or 1024 bytes), M (for megabytes, or 1048576 bytes), or G (for gigabytes, or 1073741824). If the number is suffixed with K, M, or G, then the return value is the number multiplied by one kilobyte, one megabyte, or one gigabyte, respectively.
Definition at line 129 of file cmdline.c.
print_tainted - return a string to represent the kernel taint state.
'P' - Proprietary module has been loaded. 'F' - Module has been forcibly loaded. 'S' - SMP with CPUs not designed for SMP. 'R' - User forced a module unload. 'M' - System experienced a machine check exception. 'B' - System has hit bad_page. 'U' - Userspace-defined naughtiness. 'D' - Kernel has oopsed before 'A' - ACPI table overridden. 'W' - Taint on warning. 'C' - modules from drivers/staging are loaded. 'I' - Working around severe firmware bug. 'O' - Out-of-tree module has been loaded.
The string is overwritten by the next call to print_tainted().
Definition at line 230 of file panic.c.