RTEMS CPU Kit with SuperCore  4.11.3
Macros
kernel.h File Reference
#include <rtems.h>
#include <stdlib.h>
#include <string.h>
#include "kernel-rtems.h"
Include dependency graph for kernel.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define jiffies   ((unsigned long)rtems_clock_get_ticks_since_boot())
 
#define ERR_PTR(err)   ((void*)((intptr_t)(err)))
 
#define PTR_ERR(err)   ((unsigned long)(err))
 
#define IS_ERR(err)   ((unsigned long)err > (unsigned long)-1000L)
 
#define CURRENT_TIME   cyg_timestamp()
 
#define KERN_EMERG   "<0>"
 
#define KERN_ALERT   "<1>"
 
#define KERN_CRIT   "<2>"
 
#define KERN_ERR   "<3>"
 
#define KERN_WARNING   "<4>"
 
#define KERN_NOTICE   "<5>"
 
#define KERN_INFO   "<6>"
 
#define KERN_DEBUG   "<7>"
 
#define KERN_CONT   ""
 
#define pr_fmt(fmt)   fmt
 
#define pr_emerg(fmt, ...)   printk(KERN_EMERG pr_fmt(fmt), ##__VA_ARGS__)
 
#define pr_alert(fmt, ...)   printk(KERN_ALERT pr_fmt(fmt), ##__VA_ARGS__)
 
#define pr_crit(fmt, ...)   printk(KERN_CRIT pr_fmt(fmt), ##__VA_ARGS__)
 
#define pr_err(fmt, ...)   printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
 
#define pr_warning(fmt, ...)   printk(KERN_WARNING pr_fmt(fmt), ##__VA_ARGS__)
 
#define pr_warn   pr_warning
 
#define pr_notice(fmt, ...)   printk(KERN_NOTICE pr_fmt(fmt), ##__VA_ARGS__)
 
#define pr_info(fmt, ...)   printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
 
#define pr_cont(fmt, ...)   printk(KERN_CONT fmt, ##__VA_ARGS__)
 
#define pr_debug(fmt, ...)   no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__)
 
#define min(x, y)   (x<y?x:y)
 
#define max(x, y)   (x<y?y:x)
 
#define min_t(t, x, y)   ((t)x<(t)y?(t)x:(t)y)
 
#define capable(x)   0
 
#define kmemdup(x, y, z)   do_kmemdup(x, y)
 
#define from_kuid(x, y)   (y)
 
#define from_kgid(x, y)   (y)
 
#define i_uid_read(x)   ((x)->i_uid)
 
#define i_gid_read(x)   ((x)->i_gid)
 
#define i_uid_write(x, y)   do { (x)->i_uid = (y); } while (0)
 
#define i_gid_write(x, y)   do { (x)->i_gid = (y); } while (0)
 
#define truncate_setsize(x, y)   do { (x)->i_size = (y); } while (0)