projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bytecode: initialize all contexts on event notifier group creation
[lttng-ust.git]
/
libringbuffer
/
shm_types.h
diff --git
a/libringbuffer/shm_types.h
b/libringbuffer/shm_types.h
index 8b01d803e8ad4c2189f8bf40dbbab0bf9188511a..94ccfa565a6c2bc7577d6b9533e0916d4983fd57 100644
(file)
--- a/
libringbuffer/shm_types.h
+++ b/
libringbuffer/shm_types.h
@@
-22,18
+22,26
@@
*/
#include <stdint.h>
*/
#include <stdint.h>
+#include <stddef.h>
+#include <limits.h>
#include "shm_internal.h"
struct channel;
#include "shm_internal.h"
struct channel;
+enum shm_object_type {
+ SHM_OBJECT_SHM,
+ SHM_OBJECT_MEM,
+};
+
struct shm_object {
struct shm_object {
+ enum shm_object_type type;
size_t index; /* within the object table */
int shm_fd; /* shm fd */
int wait_fd[2]; /* fd for wait/wakeup */
char *memory_map;
size_t index; /* within the object table */
int shm_fd; /* shm fd */
int wait_fd[2]; /* fd for wait/wakeup */
char *memory_map;
- int is_shadow;
size_t memory_map_size;
uint64_t allocated_len;
size_t memory_map_size;
uint64_t allocated_len;
+ int shm_fd_ownership;
};
struct shm_object_table {
};
struct shm_object_table {
@@
-45,12
+53,6
@@
struct shm_object_table {
struct lttng_ust_shm_handle {
struct shm_object_table *table;
DECLARE_SHMP(struct channel, chan);
struct lttng_ust_shm_handle {
struct shm_object_table *table;
DECLARE_SHMP(struct channel, chan);
- /*
- * In the consumer, chan points to a shadow copy, validated upon
- * reception. The chan object is overridden in the consumer to
- * point to this shadow copy.
- */
- struct channel *shadow_chan;
};
#endif /* _LIBRINGBUFFER_SHM_TYPES_H */
};
#endif /* _LIBRINGBUFFER_SHM_TYPES_H */
This page took
0.02448 seconds
and
4
git commands to generate.