1 /* This is an example import file, showing how to import the
2 * Linux task_struct structure from header files.
4 * Use: bitstring-import-c task_struct.c > task_struct.ml
6 * Tip: Add the --debug flag to that command line to see what's going on.
7 * Also use bitstring-objinfo to examine the bmpp file.
10 /* Any defines, etc. necessary to get the include to work. */
13 #define CONFIG_PAGE_OFFSETUL 0xc0000000 /* XXX? */
14 #define THREAD_SIZE 4096 /* XXX? */
16 /* Include files necessary to get the structure(s) and constant(s) we're
19 * Note in this case glibc strips the useful structures out of the
20 * so-called "kernel headers" that it supplies, so instead I have
21 * a local copy of the real headers from a version of Linux.
23 #include "linux/sched.h"
25 /* This tells the importer program what structures and constants to import. */
26 typedef struct task_struct BITSTRING_IMPORT(task_struct);