diff options
author | Dimitri Staessens <dimitri.staessens@intec.ugent.be> | 2016-03-19 19:07:55 +0100 |
---|---|---|
committer | Dimitri Staessens <dimitri.staessens@intec.ugent.be> | 2016-03-19 23:17:44 +0100 |
commit | a9bd08bf09c7baa9254a4b63aacb6bbb23f85f07 (patch) | |
tree | 280d1e0c44b3858b278b398d4985f8c26ba549ab /include | |
parent | 7712e3ea9fc6772b47f593acbe3088cae01c16d2 (diff) | |
download | ouroboros-a9bd08bf09c7baa9254a4b63aacb6bbb23f85f07.tar.gz ouroboros-a9bd08bf09c7baa9254a4b63aacb6bbb23f85f07.zip |
lib: updated shm_du_map to be a hybrid ring buffer
Elements must be created/destroyed in order, but IPCPs can access PCI
while the PDU is in the ring buffer.
Test updated, no more waits are needed.
Diffstat (limited to 'include')
-rw-r--r-- | include/ouroboros/shm_du_map.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/include/ouroboros/shm_du_map.h b/include/ouroboros/shm_du_map.h index 948a6727..bfccf60a 100644 --- a/include/ouroboros/shm_du_map.h +++ b/include/ouroboros/shm_du_map.h @@ -39,7 +39,7 @@ #endif #ifndef SHM_DU_MAP_SIZE -#define SHM_DU_MAP_SIZE (1 << 22) +#define SHM_DU_MAP_SIZE (1 << 26) #endif #include "common.h" @@ -58,8 +58,7 @@ struct shm_du_buff * shm_create_du_buff(struct shm_du_map * dum, size_t headspace, uint8_t * data, size_t len); -void shm_release_du_buff(struct shm_du_map * dum, - struct shm_du_buff * sdb); +int shm_release_du_buff(struct shm_du_map * dum); uint8_t * shm_du_buff_head_alloc(struct shm_du_map * dum, struct shm_du_buff * sdb, |