Go to the source code of this file.
◆ ptr_t
◆ 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_call_dispatch()
| DDK_EXTERN void * ke_call_dispatch |
( |
const char * | name, |
|
|
int32_t | cnt, |
|
|
void * | data, |
|
|
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
Call Kernel procedure.
- Parameters
-
| name | RPC name |
| cnt | number of elements in data pointer. |
| data | data pointer. |
| sz | The size of the whole data pointer. |
- Return values
-
| void* | Kernel call was successful. |
| nil | Kernel call failed, call KernelLastError(void) |
◆ 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.
◆ ke_set_syscall()
| DDK_EXTERN void ke_set_syscall |
( |
const int32_t | slot, |
|
|
void(* | slotFn )(void *a0) ) |
add a system call.
- Parameters
-
| slot | system call slot id. |
| slotFn,syscall | slot. |
◆ 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.