Classes | Defines | Functions
compiler.h File Reference
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/string.h>
#include <linux/version.h>
#include <linux/sched.h>
#include <linux/slab.h>
#include <linux/semaphore.h>
#include <linux/mutex.h>
#include <linux/fs.h>
#include "wmp_config.h"
#include <linux/kthread.h>
#include <asm/div64.h>
#include <linux/time.h>
#include <linux/random.h>
Include dependency graph for linux_ks/config/compiler.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  MUTEX

Defines

#define ASSERT(test)   if(!(test)) printk(KERN_INFO "ASSERT: \"%s\" failed.\n", #test)
#define ATOF(src, dst)   atof(src, dst)
#define atoi(s)
#define DEBUG(p)
#define DO_DIV64(n, b)
#define EXIT(val)   return val
#define EXPORT_MESSAGE_COMPRESSION()
#define EXPORT_SYMBOLS()
#define floor(n)   ((int)(n))
#define FREE(p)   kfree(p)
#define GETNSTIMEOFDAY(p)   getnstimeofday(p)
#define MALLOC(size)   kmalloc(size, GFP_KERNEL)
#define MUTEX_INIT(m)   spin_lock_init(&(m)->spin);
#define MUTEX_SIGNAL(m)   ({PRINTK("MS %s\n", #m); spin_unlock_irqrestore(&(m).spin,(m).flags); })
#define MUTEX_WAIT(m)   ({PRINTK("MW %s\n", #m); spin_lock_irqsave(&(m).spin,(m).flags); })
#define MUTEX_WAIT_SPIN(m)   ({PRINTK("MWS %s\n", #m); spin_lock_irqsave(&(m).spin,(m).flags); })
#define PRINTK(str,...)
#define rand()
#define SEM_GET_COUNT(nMutex)   (nMutex).count
#define SEM_INIT(p, q, r)   sema_init(p,r)
#define SEM_T   struct semaphore
#define SIGNAL(nMutex)   ({PRINTK("S %s\n", #nMutex); up(&nMutex); })
#define THREAD_CREATE(th_var, th_fun, name)   th_var = kthread_run(th_fun,NULL,name)
#define THREAD_SEM_INIT_LOCKED(p)   sema_init(p,0)
#define THREAD_SEM_SIGNAL(p)   ({ PRINTK("TSS %s\n", #p); up(p); })
#define THREAD_SEM_T   struct semaphore
#define THREAD_SEM_WAIT(p)   ({int res; PRINTK("TSW %s\n", #p); res = down_interruptible(p); })
#define THREAD_SEM_WAIT_TIMED(p, time)   ({ PRINTK("TSWT %s\n", #p); down_timeout(&p, msecs_to_jiffies(time)); })
#define THREAD_STOP(th_var)   kthread_stop(th_var)
#define THREAD_T(name)   struct task_struct * name = NULL
#define usleep(usecs)
#define WAIT(nMutex)   ({int res; PRINTK("WT %s\n", #nMutex); res = down_interruptible(&nMutex);})
#define WAIT_TIMED(nMutex, time)   ({PRINTK("WT %s\n", #nMutex); down_timeout(&nMutex, msecs_to_jiffies(time)); })
#define WMP_DBG(output,...)
#define WMP_DEBUG(output,...)
#define WMP_DEBUG1(output,...)
#define WMP_ERROR(output,...)   printk(KERN_ERR __VA_ARGS__)
#define WMP_MSG(output,...)   printk(KERN_INFO __VA_ARGS__)

Functions

void atof (const char *cadena, double *res)
char * fgets (char *s, int size, struct file *f)
struct proc_dir_entry * get_proc_root (void)

Define Documentation

#define ASSERT (   test)    if(!(test)) printk(KERN_INFO "ASSERT: \"%s\" failed.\n", #test)

Definition at line 96 of file linux_ks/config/compiler.h.

#define ATOF (   src,
  dst 
)    atof(src, dst)

Definition at line 126 of file linux_ks/config/compiler.h.

#define atoi (   s)
Value:
({                                                          \
      char *next;                                              \
      (int) simple_strtol(s,&next,10);                         \
   })

Definition at line 118 of file linux_ks/config/compiler.h.

#define DEBUG (   p)

Definition at line 212 of file linux_ks/config/compiler.h.

#define DO_DIV64 (   n,
 
)
Value:
({                                     \
      unsigned long long __n = n;         \
      do_div(__n,b);                      \
      __n;                                \
   })

Definition at line 100 of file linux_ks/config/compiler.h.

#define EXIT (   val)    return val

Definition at line 107 of file linux_ks/config/compiler.h.

Definition at line 139 of file linux_ks/config/compiler.h.

#define EXPORT_SYMBOLS ( )

Definition at line 143 of file linux_ks/config/compiler.h.

#define floor (   n)    ((int)(n))

Definition at line 116 of file linux_ks/config/compiler.h.

#define FREE (   p)    kfree(p)

Definition at line 57 of file linux_ks/config/compiler.h.

#define GETNSTIMEOFDAY (   p)    getnstimeofday(p)

Definition at line 98 of file linux_ks/config/compiler.h.

#define MALLOC (   size)    kmalloc(size, GFP_KERNEL)

Definition at line 56 of file linux_ks/config/compiler.h.

#define MUTEX_INIT (   m)    spin_lock_init(&(m)->spin);

Definition at line 73 of file linux_ks/config/compiler.h.

#define MUTEX_SIGNAL (   m)    ({PRINTK("MS %s\n", #m); spin_unlock_irqrestore(&(m).spin,(m).flags); })

Definition at line 76 of file linux_ks/config/compiler.h.

#define MUTEX_WAIT (   m)    ({PRINTK("MW %s\n", #m); spin_lock_irqsave(&(m).spin,(m).flags); })

Definition at line 74 of file linux_ks/config/compiler.h.

#define MUTEX_WAIT_SPIN (   m)    ({PRINTK("MWS %s\n", #m); spin_lock_irqsave(&(m).spin,(m).flags); })

Definition at line 75 of file linux_ks/config/compiler.h.

#define PRINTK (   str,
  ... 
)

Definition at line 60 of file linux_ks/config/compiler.h.

#define rand ( )
Value:
({                                                          \
      int __a;                                                 \
      get_random_bytes(&__a, sizeof(__a));                     \
      __a;                                                     \
   })

Definition at line 109 of file linux_ks/config/compiler.h.

#define SEM_GET_COUNT (   nMutex)    (nMutex).count

Definition at line 67 of file linux_ks/config/compiler.h.

#define SEM_INIT (   p,
  q,
 
)    sema_init(p,r)

Definition at line 63 of file linux_ks/config/compiler.h.

#define SEM_T   struct semaphore

Definition at line 62 of file linux_ks/config/compiler.h.

#define SIGNAL (   nMutex)    ({PRINTK("S %s\n", #nMutex); up(&nMutex); })

Definition at line 66 of file linux_ks/config/compiler.h.

#define THREAD_CREATE (   th_var,
  th_fun,
  name 
)    th_var = kthread_run(th_fun,NULL,name)

Definition at line 84 of file linux_ks/config/compiler.h.

#define THREAD_SEM_INIT_LOCKED (   p)    sema_init(p,0)

Definition at line 88 of file linux_ks/config/compiler.h.

#define THREAD_SEM_SIGNAL (   p)    ({ PRINTK("TSS %s\n", #p); up(p); })

Definition at line 91 of file linux_ks/config/compiler.h.

#define THREAD_SEM_T   struct semaphore

Definition at line 87 of file linux_ks/config/compiler.h.

#define THREAD_SEM_WAIT (   p)    ({int res; PRINTK("TSW %s\n", #p); res = down_interruptible(p); })

Definition at line 89 of file linux_ks/config/compiler.h.

#define THREAD_SEM_WAIT_TIMED (   p,
  time 
)    ({ PRINTK("TSWT %s\n", #p); down_timeout(&p, msecs_to_jiffies(time)); })

Definition at line 90 of file linux_ks/config/compiler.h.

#define THREAD_STOP (   th_var)    kthread_stop(th_var)

Definition at line 85 of file linux_ks/config/compiler.h.

#define THREAD_T (   name)    struct task_struct * name = NULL

Definition at line 83 of file linux_ks/config/compiler.h.

#define usleep (   usecs)
Value:
{unsigned long timeout = ((usecs * (msecs_to_jiffies(1) + 1)) / (int)1000);\
                         while (timeout) {\
                          timeout = schedule_timeout_uninterruptible(timeout);\
                        }};

Definition at line 130 of file linux_ks/config/compiler.h.

#define WAIT (   nMutex)    ({int res; PRINTK("WT %s\n", #nMutex); res = down_interruptible(&nMutex);})

Definition at line 64 of file linux_ks/config/compiler.h.

#define WAIT_TIMED (   nMutex,
  time 
)    ({PRINTK("WT %s\n", #nMutex); down_timeout(&nMutex, msecs_to_jiffies(time)); })

Definition at line 65 of file linux_ks/config/compiler.h.

#define WMP_DBG (   output,
  ... 
)

Definition at line 215 of file linux_ks/config/compiler.h.

#define WMP_DEBUG (   output,
  ... 
)

Definition at line 213 of file linux_ks/config/compiler.h.

#define WMP_DEBUG1 (   output,
  ... 
)

Definition at line 214 of file linux_ks/config/compiler.h.

#define WMP_ERROR (   output,
  ... 
)    printk(KERN_ERR __VA_ARGS__)

Definition at line 220 of file linux_ks/config/compiler.h.

#define WMP_MSG (   output,
  ... 
)    printk(KERN_INFO __VA_ARGS__)

Definition at line 218 of file linux_ks/config/compiler.h.


Function Documentation

void atof ( const char *  cadena,
double *  res 
) [inline]

Definition at line 41 of file compiler.c.

char* fgets ( char *  s,
int  size,
struct file *  f 
)

Definition at line 60 of file compiler.c.

struct proc_dir_entry* get_proc_root ( void  ) [read]

Definition at line 532 of file proc.c.



ros_rt_wmp
Author(s): Danilo Tardioli, dantard@unizar.es
autogenerated on Fri Jan 3 2014 12:07:56