From dfe5a46fb5315112d1173ac983ffc416dc3ecf18 Mon Sep 17 00:00:00 2001 From: dimitri staessens Date: Sun, 22 May 2016 14:53:22 +0200 Subject: lib, ipcpd, irmd: fixes deallocation and fast path The fast path has been rewritten to have certainty to read the correct flow. Deallocation will not release port_id's or fd's until they are explicitly released locally. --- include/ouroboros/shm_ap_rbuff.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/ouroboros/shm_ap_rbuff.h b/include/ouroboros/shm_ap_rbuff.h index 0ececf88..99c5a423 100644 --- a/include/ouroboros/shm_ap_rbuff.h +++ b/include/ouroboros/shm_ap_rbuff.h @@ -47,7 +47,8 @@ void shm_ap_rbuff_close(struct shm_ap_rbuff * rb); void shm_ap_rbuff_destroy(struct shm_ap_rbuff * rb); int shm_ap_rbuff_write(struct shm_ap_rbuff * rb, struct rb_entry * e); -int shm_ap_rbuff_peek(struct shm_ap_rbuff * rb); -struct rb_entry * shm_ap_rbuff_read(); +struct rb_entry * shm_ap_rbuff_read(struct shm_ap_rbuff * rb); +ssize_t shm_ap_rbuff_read_port(struct shm_ap_rbuff * rb, + int port_id); #endif /* OUROBOROS_SHM_AP_RBUFF_H */ -- cgit v1.2.3