26#include <l4/sys/ipc.h>
173l4_vcon_read_with_flags_u(
l4_cap_idx_t vcon,
char *buf,
unsigned size,
316 __builtin_memcpy(&mr->
mr[2], buf, size);
351l4_vcon_read_with_flags_u(
l4_cap_idx_t vcon,
char *buf,
unsigned size,
358 mr = l4_utcb_mr_u(utcb);
378 __builtin_memcpy(buf, &mr->
mr[1], r < size ? r : size);
386 return l4_vcon_read_with_flags_u(vcon, buf, size,
l4_utcb());
392 int r = l4_vcon_read_with_flags_u(vcon, buf, size, utcb);
412 __builtin_memcpy(&mr->
mr[1], attr,
sizeof(*attr));
437 if (l4_error_u(res, utcb) >= 0)
438 __builtin_memcpy(attr, &mr->
mr[1],
sizeof(*attr));
unsigned long l4_umword_t
Unsigned machine word.
unsigned long l4_cap_idx_t
Capability selector type.
l4_msgtag_t l4_ipc_send(l4_cap_idx_t dest, l4_utcb_t *utcb, l4_msgtag_t tag, l4_timeout_t timeout) L4_NOTHROW
Send a message to an object (do not wait for a reply).
l4_msgtag_t l4_ipc_call(l4_cap_idx_t object, l4_utcb_t *utcb, l4_msgtag_t tag, l4_timeout_t timeout) L4_NOTHROW
Object call (usual invocation).
long l4_error(l4_msgtag_t tag) L4_NOTHROW
Get IPC error code if any or message tag label otherwise for an IPC call.
unsigned l4_bytes_to_mwords(unsigned size) L4_NOTHROW
Determine how many machine words (l4_umword_t) are required to store a buffer of 'size' bytes.
unsigned l4_msgtag_has_error(l4_msgtag_t t) L4_NOTHROW
Test for error indicator flag.
l4_msgtag_t l4_msgtag(long label, unsigned words, unsigned items, unsigned flags) L4_NOTHROW
Create a message tag from the specified values.
@ L4_MSGTAG_SCHEDULE
Enable schedule in IPC flag.
@ L4_PROTO_LOG
Protocol for messages to a log object.
L4_vcon_ops
Operations on vcon objects.
@ L4_VCON_GET_ATTR_OP
Set console attributes.
@ L4_VCON_SET_ATTR_OP
Get console attributes.
#define L4_IPC_NEVER
never timeout
struct l4_utcb_t l4_utcb_t
Opaque type for the UTCB.
l4_utcb_t * l4_utcb(void) L4_NOTHROW L4_PURE
Get the UTCB address.
l4_msgtag_t l4_vcon_send_u(l4_cap_idx_t vcon, char const *buf, unsigned size, l4_utcb_t *utcb) L4_NOTHROW
Send data to this virtual console.
void l4_vcon_set_attr_raw(l4_vcon_attr_t *attr) L4_NOTHROW
Set terminal attributes to disable all special processing.
l4_msgtag_t l4_vcon_set_attr_u(l4_cap_idx_t vcon, l4_vcon_attr_t const *attr, l4_utcb_t *utcb) L4_NOTHROW
Set the attributes of this virtual console.
L4_vcon_o_flags
Output flags.
int l4_vcon_read(l4_cap_idx_t vcon, char *buf, unsigned size) L4_NOTHROW
Read data from virtual console.
long l4_vcon_write_u(l4_cap_idx_t vcon, char const *buf, unsigned size, l4_utcb_t *utcb) L4_NOTHROW
Write data to this virtual console.
L4_vcon_l_flags
Local flags.
long l4_vcon_write(l4_cap_idx_t vcon, char const *buf, unsigned size) L4_NOTHROW
Write data to virtual console.
L4_vcon_i_flags
Input flags.
int l4_vcon_read_u(l4_cap_idx_t vcon, char *buf, unsigned size, l4_utcb_t *utcb) L4_NOTHROW
Read data from this virtual console.
l4_msgtag_t l4_vcon_send(l4_cap_idx_t vcon, char const *buf, unsigned size) L4_NOTHROW
Send data to virtual console.
L4_vcon_size_consts
Size constants.
l4_msgtag_t l4_vcon_set_attr(l4_cap_idx_t vcon, l4_vcon_attr_t const *attr) L4_NOTHROW
Set attributes of a Vcon.
l4_msgtag_t l4_vcon_get_attr(l4_cap_idx_t vcon, l4_vcon_attr_t *attr) L4_NOTHROW
Get attributes of a Vcon.
int l4_vcon_read_with_flags(l4_cap_idx_t vcon, char *buf, unsigned size) L4_NOTHROW
Read data from virtual console, extended version including flags.
l4_msgtag_t l4_vcon_get_attr_u(l4_cap_idx_t vcon, l4_vcon_attr_t *attr, l4_utcb_t *utcb) L4_NOTHROW
Get attributes of this virtual console.
@ L4_VCON_ONLCR
Translate NL to CR-NL.
@ L4_VCON_OCRNL
Translate CR to NL.
@ L4_VCON_ONLRET
Do not output CR.
@ L4_VCON_ECHO
Echo input.
@ L4_VCON_ICANON
Canonical mode.
@ L4_VCON_INLCR
Translate NL to CR.
@ L4_VCON_IGNCR
Ignore CR.
@ L4_VCON_ICRNL
Translate CR to NL if L4_VCON_IGNCR is not set.
@ L4_VCON_READ_SIZE
Maximum size that can be read with one l4_vcon_read* call.
@ L4_VCON_WRITE_SIZE
Maximum size that can be written with one l4_vcon_write call.
#define L4_NOTHROW
Mark a function declaration and definition as never throwing an exception.
#define L4_INLINE
L4 Inline function attribute.
#define L4_LIKELY(x)
Expression is likely to execute.
Message tag data structure.
Vcon attribute structure.
l4_umword_t i_flags
input flags
l4_umword_t o_flags
output flags
void set_raw()
Set terminal attributes to disable all special processing.
l4_umword_t l_flags
local flags
Encapsulation of the message-register block in the UTCB.
l4_umword_t mr[L4_UTCB_GENERIC_DATA_SIZE]
Message registers.
L4_vcon_read_flags
Vcon read flags.
@ L4_VCON_READ_STAT_DONE
Done condition flag.
@ L4_VCON_READ_STAT_BREAK
Break condition flag.
@ L4_VCON_READ_SIZE_MASK
Size mask.