1 #ifndef _LINUX_KERNEL_H 2 #define _LINUX_KERNEL_H 3 4 /* 5 * 'kernel.h' contains some often-used function prototypes etc 6 */ 7 8 void verify_area(void * addr,int count); 9 volatile void panic(const char * str); 10 volatile void do_exit(long error_code); 11 int printk(const char * fmt, ...); 12 void * malloc(unsigned int size); 13 void free_s(void * obj, int size); 14 15 #define free(x) free_s((x), 0) 16 17 /* 18 * This is defined as a macro, but at some point this might become a 19 * real subroutine that sets a flag if it returns true (to do 20 * BSD-style accounting where the process is flagged if it uses root 21 * privs). The implication of this is that you should do normal 22 * permissions checks first, and check suser() last. 23 */ 24 #define suser() (current->euid == 0) 25 26 #endif