Go to the source code of this file.
◆ kalloc()
Allocates an heap ptr.
- Parameters
-
sz | size of the allocated struct/type. |
- Returns
- the pointer allocated or nil.
Allocates an heap ptr.
- Parameters
-
sz | the size of the heap block. |
- Returns
- the newly allocated pointer.
◆ ke_add_syscall()
DDK_EXTERN void ke_add_syscall |
( |
const int32_t | slot, |
|
|
void(* | slotFn )(void *a0) ) |
add a system call.
- Parameters
-
slot | system call slot id. |
slotFn,syscall | slot. |
◆ ke_call()
DDK_EXTERN void * ke_call |
( |
const char * | name, |
|
|
int32_t | cnt, |
|
|
void * | dat, |
|
|
size_t | sz ) |
Call Kernel procedure.
- Parameters
-
name | the procedure name. |
cnt | number of elements in dat |
dat | data argument pointer. |
sz | sz of whole data argument pointer. |
- Returns
- result of call
◆ ke_get_obj()
DDK_EXTERN struct DDK_OBJECT_MANIFEST * ke_get_obj |
( |
const int | slot, |
|
|
const char * | name ) |
Gets a Kernel object.
- Parameters
-
slot | object id (can be 0) |
name | the property's name. |
- Returns
- DDK_OBJECT_MANIFEST.
Gets a Kernel object.
- Parameters
-
slot | property id (always 0) |
name | the object's name. |
- Returns
- Object manifest.
◆ ke_set_obj()
DDK_EXTERN void * ke_set_obj |
( |
const int32_t | slot, |
|
|
const struct DDK_OBJECT_MANIFEST * | ddk_pr ) |
Set a Kernel object.
- Parameters
-
slot | object id (can be 0) |
name | the property's name. |
ddk_pr | pointer to a object's DDK_OBJECT_MANIFEST. |
- Returns
- returned object.
◆ kfree()
Frees an heap ptr.
- Parameters
-
pointer | kernel pointer to free. |
Frees an heap ptr.
- Parameters
-
◆ kApiVersion
◆ kApiVersionHighest
The highest API version of the DDK.
◆ kApiVersionLowest
The lowest API version of the DDK.