~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/arch/um/include/shared/kern_util.h

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0 */
  2 /*
  3  * Copyright (C) 2000 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com)
  4  */
  5 
  6 #ifndef __KERN_UTIL_H__
  7 #define __KERN_UTIL_H__
  8 
  9 #include <sysdep/ptrace.h>
 10 #include <sysdep/faultinfo.h>
 11 
 12 struct siginfo;
 13 
 14 extern int uml_exitcode;
 15 
 16 extern int kmalloc_ok;
 17 
 18 #define UML_ROUND_UP(addr) \
 19         ((((unsigned long) addr) + PAGE_SIZE - 1) & PAGE_MASK)
 20 
 21 extern unsigned long alloc_stack(int order, int atomic);
 22 extern void free_stack(unsigned long stack, int order);
 23 
 24 struct pt_regs;
 25 extern void do_signal(struct pt_regs *regs);
 26 extern void interrupt_end(void);
 27 extern void relay_signal(int sig, struct siginfo *si, struct uml_pt_regs *regs);
 28 
 29 extern unsigned long segv(struct faultinfo fi, unsigned long ip,
 30                           int is_user, struct uml_pt_regs *regs);
 31 extern int handle_page_fault(unsigned long address, unsigned long ip,
 32                              int is_write, int is_user, int *code_out);
 33 
 34 extern unsigned int do_IRQ(int irq, struct uml_pt_regs *regs);
 35 extern void initial_thread_cb(void (*proc)(void *), void *arg);
 36 
 37 extern void timer_handler(int sig, struct siginfo *unused_si, struct uml_pt_regs *regs);
 38 
 39 extern void uml_pm_wake(void);
 40 
 41 extern int start_uml(void);
 42 extern void paging_init(void);
 43 extern int parse_iomem(char *str, int *add);
 44 
 45 extern void uml_cleanup(void);
 46 extern void do_uml_exitcalls(void);
 47 
 48 /*
 49  * Are we disallowed to sleep? Used to choose between GFP_KERNEL and
 50  * GFP_ATOMIC.
 51  */
 52 extern int __uml_cant_sleep(void);
 53 extern int get_current_pid(void);
 54 extern int copy_from_user_proc(void *to, void *from, int size);
 55 extern char *uml_strdup(const char *string);
 56 
 57 extern unsigned long to_irq_stack(unsigned long *mask_out);
 58 extern unsigned long from_irq_stack(int nested);
 59 
 60 extern int singlestepping(void);
 61 
 62 extern void segv_handler(int sig, struct siginfo *unused_si, struct uml_pt_regs *regs);
 63 extern void bus_handler(int sig, struct siginfo *si, struct uml_pt_regs *regs);
 64 extern void winch(int sig, struct siginfo *unused_si, struct uml_pt_regs *regs);
 65 extern void fatal_sigsegv(void) __attribute__ ((noreturn));
 66 
 67 void um_idle_sleep(void);
 68 
 69 void kasan_map_memory(void *start, size_t len);
 70 
 71 #endif
 72 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php