Overview   API Reference  

resource_manager::resource_flags Struct Reference

Resource state flags. More...

#include <resource_manager.hpp>

Inheritance diagram for resource_manager::resource_flags:

Inheritance graph
[legend]
Collaboration diagram for resource_manager::resource_flags:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 resource_flags (const word_type bits=word_type())
bool is_attached (void) const
 Returns whether a handler has been attached.
bool is_fixed (void) const
 Returns whether the resource is fixed (may not be relocated).
bool is_virtual (void) const
 Returns whether the resource is used by a virtual device.
bool is_physical (void) const
 Returns whether the resource is used by a physcial device.
bool is_used (void) const
 Returns whether a resource is currently used.
bool is_valid_use (void) const
 Returns whether the flags encode a valid use.
bool is_equal_use (const resource_flags use) const
 Returns whether the specified flags are equal considering only the use flags (USE_MASK).
bool is_usable (const resource_flags use) const
 Returns whether a resource is usable.


Detailed Description

Resource state flags.

Member Function Documentation

bool resource_manager::resource_flags::is_used ( void   )  const [inline]

Returns whether a resource is currently used.

That is one of VIRTUAL or PHYSICAL is set.

References resource_manager::PHYSICAL, and resource_manager::VIRTUAL.

bool resource_manager::resource_flags::is_valid_use ( void   )  const [inline]

Returns whether the flags encode a valid use.

That is either VIRTUAL or PHYSICAL is set.

References is_physical(), and is_virtual().


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

L4vmm Reference Manual, written by Mario Schwalbe  © 2006-2008