L4Re Operating System Framework
Interface and Usage Documentation
•All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
event_buffer.h
1#pragma once
2/*
3 * (c) 2008-2009 Adam Lackorzynski <adam@os.inf.tu-dresden.de>
4 * economic rights: Technische Universität Dresden (Germany)
5 *
6 * License: see LICENSE.spdx (in this directory or the directories above)
7 */
8
9#include <l4/sys/linkage.h>
10#include <l4/re/c/event.h>
11
13
14typedef struct l4re_event_buffer_consumer_t
15{
16 unsigned long _obj_buf[8];
17} l4re_event_buffer_consumer_t;
18
19L4_CV void
20l4re_event_free(l4re_event_t *e) L4_NOTHROW;
21
22L4_CV long
23l4re_event_buffer_attach(l4re_event_buffer_consumer_t *evbuf,
25
26L4_CV long
27l4re_event_buffer_detach(l4re_event_buffer_consumer_t *evbuf,
29
31l4re_event_buffer_next(l4re_event_buffer_consumer_t *evbuf) L4_NOTHROW;
32
33typedef L4_CV void l4re_event_buffer_cb_t(l4re_event_t *ev, void *data);
34
35L4_CV void
36l4re_event_buffer_consumer_foreach_available_event(l4re_event_buffer_consumer_t *evbuf,
37 void *data, l4re_event_buffer_cb_t *cb);
38
39
40L4_CV void
41l4re_event_buffer_consumer_process(l4re_event_buffer_consumer_t *evbuf,
42 l4_cap_idx_t irq, l4_cap_idx_t thread, void *data,
43 l4re_event_buffer_cb_t *cb);
44
Event C interface.
l4_cap_idx_t l4re_ds_t
Dataspace type.
Definition dataspace.h:28
unsigned long l4_cap_idx_t
Capability selector type.
Definition types.h:335
#define __END_DECLS
End section with C types and functions.
Definition compiler.h:167
#define L4_CV
Define calling convention.
Definition linkage.h:33
#define L4_NOTHROW
Mark a function declaration and definition as never throwing an exception.
Definition compiler.h:159
#define __BEGIN_DECLS
Start section with C types and functions.
Definition compiler.h:164
Event structure used in buffer.
Definition event.h:30