#include "vud_pool.h"
#include <stddef.h>
#include <stdint.h>
Go to the source code of this file.
|
| enum | vud_error {
VUD_OK
, VUD_RANK_BUSY
, VUD_NOT_FOUND
, VUD_MEMORY_ERR
,
VUD_SYSTEM_ERR
, VUD_CI_TIMEOUT
, VUD_INVALID_RES
, VUD_EXPECTED_FAULT
,
VUD_SK_NOT_FOUND
, VUD_SK_TAG
, VUD_NOT_WAITING
, VUD_SYMBOL_NOT_FOUND
,
VUD_SYMBOL_NOT_MRAM
, VUD_SYSTEM_THREAD
, VUD_KEY_XCHG
} |
| |
◆ VUD_ALLOC_ANY
◆ vud_error
◆ vud_rank
◆ vud_error
| Enumerator |
|---|
| VUD_OK | |
| VUD_RANK_BUSY | |
| VUD_NOT_FOUND | |
| VUD_MEMORY_ERR | |
| VUD_SYSTEM_ERR | |
| VUD_CI_TIMEOUT | |
| VUD_INVALID_RES | |
| VUD_EXPECTED_FAULT | |
| VUD_SK_NOT_FOUND | |
| VUD_SK_TAG | |
| VUD_NOT_WAITING | |
| VUD_SYMBOL_NOT_FOUND | |
| VUD_SYMBOL_NOT_MRAM | |
| VUD_SYSTEM_THREAD | |
| VUD_KEY_XCHG | |
◆ vud_rank_alloc()
allocate a single vud rank
- Parameters
-
| rank_nr | number of the rank to allocate or -1 for any available rank |
◆ vud_rank_free()
release the rank back to the os and free associated resources
- Parameters
-
◆ vud_rank_nr_workers()
| void vud_rank_nr_workers |
( |
vud_rank * |
rank, |
|
|
unsigned |
n |
|
) |
| |
specify the number of worker threads
Worker threads are used in all memory transfer functions due to their quite heavy-weight nature. All other operations use just one thread (the calling one).
- Parameters
-
| rank | rank using the additional worker threads |
| n | number of workers - 1 to only use the calling thread |
◆ vud_rank_qry_mux()
| uint8_t vud_rank_qry_mux |
( |
vud_rank * |
rank | ) |
|
get the current mux state of one DPU line of a rank
- Parameters
-
- Returns
- mask where 1 bits indicate a host facing MUX
◆ vud_rank_rel_mux()
| void vud_rank_rel_mux |
( |
vud_rank * |
rank | ) |
|
release control of the MUX continuing execution on the DPUs
- Parameters
-
| rank | rank to release MUX on |