Espresso 0.0.1e
This commit is contained in:
21
Documentation/Modules and drivers API.txt
Normal file
21
Documentation/Modules and drivers API.txt
Normal file
@ -0,0 +1,21 @@
|
||||
Modules and Drivers API
|
||||
|
||||
|
||||
This file contains documentation for the Module/Driver API.
|
||||
|
||||
|
||||
The kernel symtab is always at 0xC0101000, and can go up to 0xC0101000 + 0x8086 ( See what I did there?)
|
||||
|
||||
|
||||
ID number -- Function -- Returns -- Arguments
|
||||
0 -- get_kinfo -- kinfo_t -- uint32_t leaf
|
||||
1 -- make_kfunc -- kfunc_t -- void* addr, bool module, uint16_t module_id, uint32_t function_id
|
||||
2 -- add_kfunc -- uint32_t -- void* addr, bool module, uint16_t module_id, uint32_t function_id
|
||||
3 -- printf -- void -- const char* format, ...
|
||||
4 -- malloc -- void* -- size_t size
|
||||
5 -- free -- void -- void* ptr
|
||||
6 -- calloc -- void* -- size_t nmemb, size_t size
|
||||
7 -- realloc -- void* -- void* ptr, size_t size
|
||||
8 -- get_key -- uint16_t -- void
|
||||
9 -- get_string -- char* -- void
|
||||
10 --
|
Reference in New Issue
Block a user