src/commands/swifi/extra.h File Reference

#include <a.out.h>
#include <errno.h>
#include <string.h>
#include <sys/types.h>
#include "ddb.h"
#include "db_machdep.h"

Go to the source code of this file.

Classes

struct  thread
struct  task_struct
struct  pgprot_t
struct  lock

Defines

#define GFP_KERNEL   1
#define for_each_task(t)   for(t= task_list; t; t=t->next)
#define ElfW(type)   Elf_ ## type
#define PAGE_SIZE   (0x1000)
#define PAGE_MASK   (0x0fff)
#define PAGE_OFFSET   0
#define TASK_SIZE   0

Typedefs

typedef unsigned long Elf_Addr
typedef unsigned long Elf_Word

Functions

unsigned long __get_free_page (int type)
void * kmalloc (size_t size, int type)
void free_page (unsigned long page)
void kfree (void *mem)
void vfree (void *mem)
size_t strncpy_from_user (char *addr, const char *user_name, size_t size)
void lock_kernel (void)
void unlock_kernel (void)
void __asm__ (char *str)
void * __vmalloc (unsigned long size, int gfp_mask, pgprot_t prot)
void kallsyms_sections (void *infop, int(*fp)(void *token, const char *modname, const char *secname, ElfW(Addr) secstart, ElfW(Addr) secend, ElfW(Word) secflags))
unsigned long __generic_copy_to_user (void *, const void *, unsigned long)
unsigned long __generic_copy_from_user (void *, const void *, unsigned long)
void read_lock (struct lock *lock)
void read_unlock (struct lock *lock)
void udelay (unsigned long usecs)
int copy_to_user (void *result_record, void *res, size_t size)
void panic (char *str)
void printk (char *fmt,...)
int kallsyms_address_to_symbol (db_expr_t off, const char **mod_name, unsigned long *mod_start, unsigned long *mod_end, const char **sec_name, unsigned long *sec_start, unsigned long *sec_end, const char **sym_name, unsigned long *sym_start, unsigned long *sym_end)
int read_nlist (const char *filenamer, struct nlist **nlist_table)
unsigned long text_read_ul (void *addr)
unsigned char text_read_ub (void *addr)
void text_write_ul (void *addr, unsigned long value)
void text_write_ub (void *addr, unsigned char value)
void load_nlist (char *exe_name, unsigned long *btextp, unsigned long *etextp)

Variables

struct task_structtask_list
struct lock tasklist_lock
pid_t victim_pid
char * victim_exe


Define Documentation

#define ElfW ( type   )     Elf_ ## type

Definition at line 50 of file extra.h.

#define for_each_task ( t   )     for(t= task_list; t; t=t->next)

Definition at line 44 of file extra.h.

#define GFP_KERNEL   1

Definition at line 32 of file extra.h.

#define PAGE_MASK   (0x0fff)

Definition at line 73 of file extra.h.

#define PAGE_OFFSET   0

Definition at line 74 of file extra.h.

#define PAGE_SIZE   (0x1000)

Definition at line 72 of file extra.h.

#define TASK_SIZE   0

Definition at line 75 of file extra.h.


Typedef Documentation

typedef unsigned long Elf_Addr

Definition at line 51 of file extra.h.

typedef unsigned long Elf_Word

Definition at line 52 of file extra.h.


Function Documentation

void __asm__ ( char *  str  ) 

Definition at line 33 of file extra.c.

unsigned long __generic_copy_from_user ( void *  ,
const void *  ,
unsigned  long 
)

Definition at line 47 of file extra.c.

unsigned long __generic_copy_to_user ( void *  ,
const void *  ,
unsigned  long 
)

Definition at line 45 of file extra.c.

unsigned long __get_free_page ( int  type  ) 

void* __vmalloc ( unsigned long  size,
int  gfp_mask,
pgprot_t  prot 
)

Definition at line 35 of file extra.c.

int copy_to_user ( void *  result_record,
void *  res,
size_t  size 
)

Definition at line 53 of file extra.c.

void free_page ( unsigned long  page  ) 

Definition at line 24 of file extra.c.

int kallsyms_address_to_symbol ( db_expr_t  off,
const char **  mod_name,
unsigned long *  mod_start,
unsigned long *  mod_end,
const char **  sec_name,
unsigned long *  sec_start,
unsigned long *  sec_end,
const char **  sym_name,
unsigned long *  sym_start,
unsigned long *  sym_end 
)

Definition at line 70 of file extra.c.

void kallsyms_sections ( void *  infop,
int(*)(void *token, const char *modname, const char *secname, ElfW(Addr) secstart, ElfW(Addr) secend, ElfW(Word) secflags)  fp 
)

void kfree ( void *  mem  ) 

void* kmalloc ( size_t  size,
int  type 
)

void load_nlist ( char *  exe_name,
unsigned long *  btextp,
unsigned long *  etextp 
)

Definition at line 195 of file extra.c.

void lock_kernel ( void   ) 

void panic ( char *  str  ) 

Definition at line 649 of file cc.c.

void printk ( char *  fmt,
  ... 
)

Definition at line 61 of file extra.c.

void read_lock ( struct lock lock  ) 

int read_nlist ( const char *  filenamer,
struct nlist **  nlist_table 
)

void read_unlock ( struct lock lock  ) 

size_t strncpy_from_user ( char *  addr,
const char *  user_name,
size_t  size 
)

Definition at line 28 of file extra.c.

unsigned char text_read_ub ( void *  addr  ) 

Definition at line 150 of file extra.c.

unsigned long text_read_ul ( void *  addr  ) 

Definition at line 138 of file extra.c.

void text_write_ub ( void *  addr,
unsigned char  value 
)

Definition at line 178 of file extra.c.

void text_write_ul ( void *  addr,
unsigned long  value 
)

Definition at line 168 of file extra.c.

void udelay ( unsigned long  usecs  ) 

Definition at line 52 of file extra.c.

void unlock_kernel ( void   ) 

void vfree ( void *  mem  ) 

Definition at line 26 of file extra.c.


Variable Documentation

Definition at line 135 of file extra.c.

Definition at line 136 of file extra.c.

char* victim_exe

Definition at line 15 of file extra.c.

pid_t victim_pid

Definition at line 14 of file extra.c.


Generated on Tue Mar 9 04:36:44 2010 for Minix by  doxygen 1.5.8