Go to the documentation of this file.
9 #include <generated/asm-offsets.h>
17 #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
21 #include <linux/types.h>
26 extern void panic(
const char *
fmt, ...)
30 #define UM_KERN_EMERG KERN_EMERG
31 #define UM_KERN_ALERT KERN_ALERT
32 #define UM_KERN_CRIT KERN_CRIT
33 #define UM_KERN_ERR KERN_ERR
34 #define UM_KERN_WARNING KERN_WARNING
35 #define UM_KERN_NOTICE KERN_NOTICE
36 #define UM_KERN_INFO KERN_INFO
37 #define UM_KERN_DEBUG KERN_DEBUG
38 #define UM_KERN_CONT KERN_CONT
40 #ifdef UML_CONFIG_PRINTK
41 extern int printk(
const char *fmt, ...)
44 static inline int printk(
const char *fmt, ...)
51 extern size_t strlcpy(
char *,
const char *,
size_t);
52 extern size_t strlcat(
char *,
const char *,
size_t);
55 #define barrier() __asm__ __volatile__("": : :"memory")