L4Re Operating System Framework
Interface and Usage Documentation
Loading...
Searching...
No Matches
L4virtio::Svr::Dev_status Struct Reference

Type of the device status register. More...

#include <virtio>

+ Collaboration diagram for L4virtio::Svr::Dev_status:

Public Member Functions

 Dev_status (l4_uint32_t v)
 Make Status from raw value.
 
bool running () const
 Check if the device is in running state.
 

Data Fields

unsigned char raw
 Raw value of the VIRTIO device status register.
 

Detailed Description

Type of the device status register.

Definition at line 32 of file virtio.

Member Function Documentation

◆ running()

bool L4virtio::Svr::Dev_status::running ( ) const
inline

Check if the device is in running state.

Returns
true if the device is in running state.

The device is in running state when acked(), driver(), features_ok(), and driver_ok() return true, and device_needs_reset() and failed() return false.

Definition at line 57 of file virtio.

References raw.


The documentation for this struct was generated from the following file: