base/include/rtai_proc_fs.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define LIMIT   (PAGE_SIZE - 80)
#define PROC_PRINT_VARS
#define PROC_PRINT(fmt, args...)
#define PROC_PRINT_RETURN
#define PROC_PRINT_DONE

Variables

proc_dir_entry * rtai_proc_root


Define Documentation

#define LIMIT   (PAGE_SIZE - 80)

Definition at line 22 of file rtai_proc_fs.h.

#define PROC_PRINT ( fmt,
args...   ) 

Value:

do {    \
    len += sprintf(page + len , fmt, ##args);           \
    pos += len;                                         \
    if(pos < off) {                                     \
        len = 0;                                        \
        begin = pos;                                    \
    }                                                   \
    if(pos > off + count)                               \
        goto done; \
} while(0)

Definition at line 44 of file rtai_proc_fs.h.

#define PROC_PRINT_DONE

Value:

do {    \
        *eof = 1;                                       \
    done:                                               \
        *start = page + (off - begin);                  \
        len -= (off - begin);                           \
        if(len > count)                                 \
            len = count;                                \
        if(len < 0)                                     \
            len = 0;                                    \
        return len; \
} while(0)

Definition at line 67 of file rtai_proc_fs.h.

#define PROC_PRINT_RETURN

Value:

do {    \
    *eof = 1;                                          \
    goto done; \
} while(0)

Definition at line 58 of file rtai_proc_fs.h.

#define PROC_PRINT_VARS

Value:

off_t pos = 0;                                      \
    off_t begin = 0;                                    \
    int len = 0

Definition at line 33 of file rtai_proc_fs.h.


Variable Documentation

struct proc_dir_entry* rtai_proc_root

Referenced by __rtai_wd_exit(), and __rtai_wd_init().


Generated on Tue Feb 2 17:47:17 2010 for RTAI API by  doxygen 1.4.7