From a9bd08bf09c7baa9254a4b63aacb6bbb23f85f07 Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Sat, 19 Mar 2016 19:07:55 +0100 Subject: 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. --- include/ouroboros/shm_du_map.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'include') 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, -- cgit v1.2.3