00001 /* header file for src/module/api1.cpp */ 00002 00003 #ifndef _CORE_MODULE_API1_HPP 00004 #define _CORE_MODULE_API1_HPP 00005 00006 namespace API { 00007 namespace v1 { 00008 00009 00010 bool isKernelSpace(uint32 addr, uint32 size); 00011 00012 //process a panalix sysapi, v1 00013 int req(struct env_t *env, int *args); 00014 00015 //consts 00016 const uint32 API_SENDMSG = 0x0001; 00017 const uint32 API_RECVMSG = 0x0002; 00018 const uint32 API_FREEMSG = 0x0003; 00019 const uint32 API_COUT = 0x0004; 00020 const uint32 API_GETPROCNO = 0x0005; 00021 const uint32 API_SLEEP = 0x0006; 00022 const uint32 API_MORECORE = 0x0007; 00023 00024 00025 uint32 user_morecore(struct env_t *env, uint32 cnt); //allocate some virtual space for the process, and lazy it 00026 int UDATA_destroy(mmap_t *mt, mmap_s *ms); //destroys the UDATA alloced for the process 00027 00028 00029 00030 }; /*namespace v1*/ 00031 }; /*namespace API*/ 00032 00033 #endif