L4Re Operating System Framework
Interface and Usage Documentation
Loading...
Searching...
No Matches
Virtio_net_switch::Statistics_if Class Reference

IPC interface for the statistics interface. More...

#include <stats.h>

Inheritance diagram for Virtio_net_switch::Statistics_if:
Collaboration diagram for Virtio_net_switch::Statistics_if:

Public Member Functions

long get_buffer (L4::Ipc::Out< L4::Cap< L4Re::Dataspace > > ds)
 Get shared memory buffer containing port statistics.
long sync ()
 Instruct the switch to update the statistics information in the shared memory buffer.
Public Member Functions inherited from L4::Kobject
l4_msgtag_t dec_refcnt (l4_mword_t diff, l4_utcb_t *utcb=l4_utcb())
 Decrement the in kernel reference counter for the object.

Additional Inherited Members

Protected Types inherited from L4::Kobject_t< Statistics_if, L4::Kobject >
typedef Statistics_if Class
 The target interface type (inheriting from Kobject_t).
typedef Typeid::Iface< PROTO_ANY, Statistics_if > __Iface
 The interface description for the derived class.
typedef Typeid::Merge_list< Typeid::Iface_list< __Iface >, typename L4::Kobject::__Iface_list > __Iface_list
 The list of all RPC interfaces provided directly or through inheritance.
Protected Member Functions inherited from L4::Kobject_t< Statistics_if, L4::Kobject >
L4::Cap< Class > c () const noexcept
 Get the capability to ourselves.
Protected Member Functions inherited from L4::Kobject
l4_cap_idx_t cap () const noexcept
 Return capability selector.
Static Protected Member Functions inherited from L4::Kobject_t< Statistics_if, L4::Kobject >
static void __check_protocols__ () noexcept
 Helper to check for protocol conflicts.

Detailed Description

IPC interface for the statistics interface.

This interface is plumbing used by the Monitor interface. Clients usually do not invoke this directly.

Definition at line 58 of file stats.h.

Member Function Documentation

◆ get_buffer()

long Virtio_net_switch::Statistics_if::get_buffer ( L4::Ipc::Out< L4::Cap< L4Re::Dataspace > > ds)

Get shared memory buffer containing port statistics.

Parameters
[out]dsCapability of the dataspace containing port statistics.
Return values
0Success
<0Error

References get_buffer().

Referenced by get_buffer().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sync()

long Virtio_net_switch::Statistics_if::sync ( )

Instruct the switch to update the statistics information in the shared memory buffer.

Return values
0Success
<0Error

References sync().

Referenced by sync().

Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following file:
  • pkg/virtio-net-switch/lib/include/stats.h