e92c0af03d3d99e61f92b07684536161a116f4bf
1 #ifndef _LIBRINGBUFFER_SHM_TYPES_H
2 #define _LIBRINGBUFFER_SHM_TYPES_H
5 * libringbuffer/shm_types.h
7 * Copyright 2011 (c) - Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
9 * Dual LGPL v2.1/GPL v2 license.
13 #include "shm_internal.h"
18 size_t index
; /* within the object table */
19 int shm_fd
; /* shm fd */
20 int wait_fd
[2]; /* fd for wait/wakeup */
22 size_t memory_map_size
;
26 struct shm_object_table
{
29 struct shm_object objects
[];
33 struct shm_object_table
*table
;
34 DECLARE_SHMP(struct channel
, chan
);
36 * In the consumer, chan points to a shadow copy, validated upon
37 * reception. The chan object is overridden in the consumer to
38 * point to this shadow copy.
40 struct channel
*shadow_chan
;
43 #endif /* _LIBRINGBUFFER_SHM_TYPES_H */
This page took 0.038288 seconds and 3 git commands to generate.