Loading...
Searching...
No Matches
vcon
Go to the documentation of this file.
// vi:set ft=cpp: -*- Mode: C++ -*-
/*
* (c) 2008-2009 Adam Lackorzynski <adam@os.inf.tu-dresden.de>,
* Alexander Warg <warg@os.inf.tu-dresden.de>,
* Torsten Frenzel <frenzel@os.inf.tu-dresden.de>
* economic rights: Technische Universität Dresden (Germany)
*
* License: see LICENSE.spdx (in this directory or the directories above)
*/
#pragma once
#include <l4/sys/icu>
#include <l4/sys/vcon.h>
#include <l4/sys/capability>
namespace L4 {
class Vcon :
public Kobject_t<Vcon, Icu, L4_PROTO_LOG>
{
public:
l4_msgtag_t
send(char const *buf, unsigned size, l4_utcb_t *utcb = l4_utcb()) const noexcept
{ return l4_vcon_send_u(cap(), buf, size, utcb); }
long
write(char const *buf, unsigned size, l4_utcb_t *utcb = l4_utcb()) const noexcept
{ return l4_vcon_write_u(cap(), buf, size, utcb); }
int
read(char *buf, unsigned size, l4_utcb_t *utcb = l4_utcb()) const noexcept
{ return l4_vcon_read_u(cap(), buf, size, utcb); }
int
read_with_flags(char *buf, unsigned size, l4_utcb_t *utcb = l4_utcb()) const noexcept
{ return l4_vcon_read_with_flags_u(cap(), buf, size, utcb); }
l4_msgtag_t
set_attr(l4_vcon_attr_t const *attr, l4_utcb_t *utcb = l4_utcb()) const noexcept
{ return l4_vcon_set_attr_u(cap(), attr, utcb); }
l4_msgtag_t
get_attr(l4_vcon_attr_t *attr, l4_utcb_t *utcb = l4_utcb()) const noexcept
{ return l4_vcon_get_attr_u(cap(), attr, utcb); }
typedef L4::Typeid::Raw_ipc<Vcon> Rpcs;
};
}
capability
L4::Cap related definitions.
L4::Kobject_t
Helper class to create an L4Re interface class that is derived from a single base class.
Definition __typeinfo.h:750
L4::Kobject::cap
l4_cap_idx_t cap() const noexcept
Return capability selector.
Definition kobject:69
L4::Vcon
C++ L4 Vcon interface, see Virtual Console for the C interface.
Definition vcon:47
L4::Vcon::get_attr
l4_msgtag_t get_attr(l4_vcon_attr_t *attr, l4_utcb_t *utcb=l4_utcb()) const noexcept
Get attributes of this virtual console.
Definition vcon:151
L4::Vcon::read_with_flags
int read_with_flags(char *buf, unsigned size, l4_utcb_t *utcb=l4_utcb()) const noexcept
Read data from this virtual console which also returns flags.
Definition vcon:125
L4::Vcon::write
long write(char const *buf, unsigned size, l4_utcb_t *utcb=l4_utcb()) const noexcept
Write data to this virtual console.
Definition vcon:79
L4::Vcon::set_attr
l4_msgtag_t set_attr(l4_vcon_attr_t const *attr, l4_utcb_t *utcb=l4_utcb()) const noexcept
Set the attributes of this virtual console.
Definition vcon:138
L4::Vcon::read
int read(char *buf, unsigned size, l4_utcb_t *utcb=l4_utcb()) const noexcept
Read data from this virtual console.
Definition vcon:98
L4::Vcon::send
l4_msgtag_t send(char const *buf, unsigned size, l4_utcb_t *utcb=l4_utcb()) const noexcept
Send data to this virtual console.
Definition vcon:65
l4_utcb_t
struct l4_utcb_t l4_utcb_t
Opaque type for the UTCB.
Definition utcb.h:56
l4_utcb
l4_utcb_t * l4_utcb(void) L4_NOTHROW L4_PURE
Get the UTCB address.
Definition utcb.h:346
l4_vcon_send_u
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.
Definition vcon.h:302
l4_vcon_set_attr_u
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.
Definition vcon.h:397
l4_vcon_write_u
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.
Definition vcon.h:321
l4_vcon_read_u
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.
Definition vcon.h:381
l4_vcon_get_attr_u
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.
Definition vcon.h:417
icu
Interrupt controller.
L4
L4 low-level kernel interface.
Definition l4sys-l4f-groups.dox:50
L4::Typeid::Raw_ipc
RPCs list for passing raw incoming IPC to the server object.
Definition __typeinfo.h:413
l4_msgtag_t
Message tag data structure.
Definition types.h:154
l4_vcon_attr_t
Vcon attribute structure.
Definition vcon.h:188
vcon.h
Virtual console interface.