L4Re Operating System Framework
Interface and Usage Documentation
Toggle main menu visibility
Main Page
Related Pages
Topics
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
h
i
k
m
o
p
r
s
t
u
w
Functions
a
b
c
k
m
r
s
t
w
Variables
Typedefs
Enumerations
Enumerator
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
Data Fields
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
~
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
~
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Typedefs
_
a
b
c
d
e
f
g
i
k
m
n
o
p
r
s
t
v
w
Enumerations
a
c
d
e
f
i
m
n
p
q
r
s
t
v
Enumerator
a
b
c
d
e
f
g
i
k
l
m
n
o
p
r
s
t
u
w
x
Related Symbols
Files
File List
Globals
All
_
a
b
d
e
f
g
l
m
n
o
p
r
s
Functions
_
b
e
f
g
l
o
p
Typedefs
e
g
l
p
Enumerations
e
l
p
Enumerator
a
d
e
f
l
n
p
r
s
Macros
_
e
g
l
m
p
s
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
Loading...
Searching...
No Matches
virtio_net_buffer.h
1
/*
2
* Copyright (C) 2016-2017, 2022, 2024 Kernkonzept GmbH.
3
* Author(s): Jean Wolter <jean.wolter@kernkonzept.com>
4
* Alexander Warg <warg@os.inf.tu-dresden.de>
5
*
6
* License: see LICENSE.spdx (in this directory or the directories above)
7
*/
8
#pragma once
9
10
#include <l4/l4virtio/server/l4virtio>
19
struct
Buffer
:
L4virtio::Svr::Data_buffer
20
{
21
Buffer
() =
default
;
22
Buffer
(L4virtio::Svr::Driver_mem_region
const
*r,
23
L4virtio::Svr::Virtqueue::Desc
const
&d,
24
L4virtio::Svr::Request_processor
const
*)
25
{
26
pos
=
static_cast<
char
*
>
(r->local(d.
addr
));
27
left
= d.
len
;
28
}
29
30
template
<
typename
T>
31
explicit
Buffer
(T *p) : Data_buffer(p) {};
32
};
19
struct
Buffer
:
L4virtio::Svr::Data_buffer
{
…
};
33
L4virtio::Svr::Request_processor
Encapsulate the state for processing a VIRTIO request.
Definition
virtio:473
L4virtio::Virtqueue::Desc
Descriptor in the descriptor table.
Definition
virtqueue:87
L4virtio::Virtqueue::Desc::len
l4_uint32_t len
Length of described buffer.
Definition
virtqueue:109
L4virtio::Virtqueue::Desc::addr
Ptr< void > addr
Address stored in descriptor.
Definition
virtqueue:108
Buffer
Data buffer used to transfer packets.
Definition
virtio_net_buffer.h:20
L4virtio::Svr::Data_buffer
Abstract data buffer.
Definition
virtio:307
L4virtio::Svr::Data_buffer::left
l4_uint32_t left
Bytes left in buffer.
Definition
virtio:309
L4virtio::Svr::Data_buffer::pos
char * pos
Current buffer position.
Definition
virtio:308
pkg
virtio-net-switch
server
switch
virtio_net_buffer.h
Generated on Mon Mar 3 2025 23:08:49 for L4Re Operating System Framework by
1.9.8