Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
kern_util.h File Reference
#include <sysdep/ptrace.h>
#include <sysdep/faultinfo.h>

Go to the source code of this file.

Macros

#define UML_ROUND_UP(addr)   ((((unsigned long) addr) + PAGE_SIZE - 1) & PAGE_MASK)
 

Functions

unsigned long alloc_stack (int order, int atomic)
 
void free_stack (unsigned long stack, int order)
 
int do_signal (void)
 
void interrupt_end (void)
 
void relay_signal (int sig, struct siginfo *si, struct uml_pt_regs *regs)
 
unsigned long segv (struct faultinfo fi, unsigned long ip, int is_user, struct uml_pt_regs *regs)
 
int handle_page_fault (unsigned long address, unsigned long ip, int is_write, int is_user, int *code_out)
 
unsigned int do_IRQ (int irq, struct uml_pt_regs *regs)
 
int smp_sigio_handler (void)
 
void initial_thread_cb (void(*proc)(void *), void *arg)
 
int is_syscall (unsigned long addr)
 
void timer_handler (int sig, struct siginfo *unused_si, struct uml_pt_regs *regs)
 
int start_uml (void)
 
void paging_init (void)
 
void uml_cleanup (void)
 
void do_uml_exitcalls (void)
 
int __cant_sleep (void)
 
int get_current_pid (void)
 
int copy_from_user_proc (void *to, void *from, int size)
 
int cpu (void)
 
charuml_strdup (const char *string)
 
unsigned long to_irq_stack (unsigned long *mask_out)
 
unsigned long from_irq_stack (int nested)
 
void syscall_trace (struct uml_pt_regs *regs, int entryexit)
 
int singlestepping (void *t)
 
void segv_handler (int sig, struct siginfo *unused_si, struct uml_pt_regs *regs)
 
void bus_handler (int sig, struct siginfo *si, struct uml_pt_regs *regs)
 
void winch (int sig, struct siginfo *unused_si, struct uml_pt_regs *regs)
 
void fatal_sigsegv (void) __attribute__((noreturn))
 

Variables

int uml_exitcode
 
int ncpus
 
int kmalloc_ok
 

Macro Definition Documentation

#define UML_ROUND_UP (   addr)    ((((unsigned long) addr) + PAGE_SIZE - 1) & PAGE_MASK)

Definition at line 19 of file kern_util.h.

Function Documentation

int __cant_sleep ( void  )

Definition at line 243 of file process.c.

unsigned long alloc_stack ( int  order,
int  atomic 
)

Definition at line 60 of file process.c.

void bus_handler ( int  sig,
struct siginfo si,
struct uml_pt_regs regs 
)

Definition at line 301 of file trap.c.

int copy_from_user_proc ( void to,
void from,
int  size 
)
int cpu ( void  )

Definition at line 304 of file process.c.

unsigned int do_IRQ ( int  irq,
struct uml_pt_regs regs 
)

Definition at line 290 of file irq.c.

int do_signal ( void  )

Definition at line 121 of file signal.c.

void do_uml_exitcalls ( void  )

Definition at line 258 of file process.c.

void fatal_sigsegv ( void  )

Definition at line 164 of file trap.c.

void free_stack ( unsigned long  stack,
int  order 
)

Definition at line 55 of file process.c.

unsigned long from_irq_stack ( int  nested)

Definition at line 452 of file irq.c.

int get_current_pid ( void  )

Definition at line 116 of file process.c.

int handle_page_fault ( unsigned long  address,
unsigned long  ip,
int  is_write,
int  is_user,
int code_out 
)

Definition at line 23 of file trap.c.

void initial_thread_cb ( void(*)(void *)  proc,
void arg 
)

Definition at line 205 of file process.c.

void interrupt_end ( void  )

Definition at line 102 of file process.c.

int is_syscall ( unsigned long  addr)

Definition at line 26 of file ptrace_32.c.

void paging_init ( void  )

paging_init - setup page tables

paging_init() sets up the page tables for each node of the system and frees the bootmem allocator memory for general use.

Definition at line 238 of file init.c.

void relay_signal ( int  sig,
struct siginfo si,
struct uml_pt_regs regs 
)

Definition at line 262 of file trap.c.

unsigned long segv ( struct faultinfo  fi,
unsigned long  ip,
int  is_user,
struct uml_pt_regs regs 
)

Definition at line 194 of file trap.c.

void segv_handler ( int  sig,
struct siginfo unused_si,
struct uml_pt_regs regs 
)

Definition at line 176 of file trap.c.

int singlestepping ( void t)

Definition at line 377 of file process.c.

int smp_sigio_handler ( void  )

Definition at line 293 of file process.c.

int start_uml ( void  )

Definition at line 54 of file process.c.

void syscall_trace ( struct uml_pt_regs regs,
int  entryexit 
)
void timer_handler ( int  sig,
struct siginfo unused_si,
struct uml_pt_regs regs 
)

Definition at line 16 of file time.c.

unsigned long to_irq_stack ( unsigned long mask_out)

Definition at line 408 of file irq.c.

void uml_cleanup ( void  )

Definition at line 42 of file reboot.c.

char* uml_strdup ( const char string)

Definition at line 267 of file process.c.

void winch ( int  sig,
struct siginfo unused_si,
struct uml_pt_regs regs 
)

Definition at line 309 of file trap.c.

Variable Documentation

int kmalloc_ok

Definition at line 36 of file mem.c.

int ncpus

Definition at line 117 of file um_arch.c.

int uml_exitcode

Definition at line 19 of file exitcode.c.