/* * Copyright (C) 2000 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com) * Licensed under the GPL */ #ifndef __KERN_UTIL_H__ #define __KERN_UTIL_H__ #include <sysdep/ptrace.h> #include <sysdep/faultinfo.h> struct siginfo; extern int uml_exitcode; extern int ncpus; extern int kmalloc_ok; #define UML_ROUND_UP(addr) \ ((((unsigned long) addr) + PAGE_SIZE - 1) & PAGE_MASK) extern unsigned long alloc_stack(int order, int atomic); extern void free_stack(unsigned long stack, int order); struct pt_regs; extern void do_signal(struct pt_regs *regs); extern void interrupt_end(void); extern void relay_signal(int sig, struct siginfo *si, struct uml_pt_regs *regs); extern unsigned long segv(struct faultinfo fi, unsigned long ip, int is_user, struct uml_pt_regs *regs); extern int handle_page_fault(unsigned long address, unsigned long ip, int is_write, int is_user, int *code_out); extern unsigned int do_IRQ(int irq, struct uml_pt_regs *regs); extern int smp_sigio_handler(void); extern void initial_thread_cb(void (*proc)(void *), void *arg); extern int is_syscall(unsigned long addr); extern void timer_handler(int sig, struct siginfo *unused_si, struct uml_pt_regs *regs); extern int start_uml(void); extern void paging_init(void); extern void uml_cleanup(void); extern void do_uml_exitcalls(void); /* * Are we disallowed to sleep? Used to choose between GFP_KERNEL and * GFP_ATOMIC. */ extern int __cant_sleep(void); extern int get_current_pid(void); extern int copy_from_user_proc(void *to, void *from, int size); extern int cpu(void); extern char *uml_strdup(const char *string); extern unsigned long to_irq_stack(unsigned long *mask_out); extern unsigned long from_irq_stack(int nested); extern void syscall_trace(struct uml_pt_regs *regs, int entryexit); extern int singlestepping(void *t); extern void segv_handler(int sig, struct siginfo *unused_si, struct uml_pt_regs *regs); extern void bus_handler(int sig, struct siginfo *si, struct uml_pt_regs *regs); extern void winch(int sig, struct siginfo *unused_si, struct uml_pt_regs *regs); extern void fatal_sigsegv(void) __attribute__ ((noreturn)); #endif
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
skas | Folder | 0755 |
|
|
aio.h | File | 530 B | 0644 |
|
arch.h | File | 350 B | 0644 |
|
as-layout.h | File | 1.56 KB | 0644 |
|
common-offsets.h | File | 1.05 KB | 0644 |
|
elf_user.h | File | 385 B | 0644 |
|
frame_kern.h | File | 392 B | 0644 |
|
init.h | File | 3.89 KB | 0644 |
|
irq_kern.h | File | 409 B | 0644 |
|
irq_user.h | File | 652 B | 0644 |
|
kern.h | File | 569 B | 0644 |
|
kern_util.h | File | 2.1 KB | 0644 |
|
longjmp.h | File | 440 B | 0644 |
|
mem.h | File | 455 B | 0644 |
|
mem_user.h | File | 2.42 KB | 0644 |
|
net_kern.h | File | 1.81 KB | 0644 |
|
net_user.h | File | 1.6 KB | 0644 |
|
os.h | File | 10.63 KB | 0644 |
|
ptrace_user.h | File | 1.88 KB | 0644 |
|
registers.h | File | 1002 B | 0644 |
|
sigio.h | File | 271 B | 0644 |
|
timer-internal.h | File | 275 B | 0644 |
|
um_malloc.h | File | 384 B | 0644 |
|
user.h | File | 1.45 KB | 0644 |
|