mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-31 08:25:38 +00:00
os: add Attached_rom_dataspace::cap accessor
The accessor works analogously to the Attached_dataspace.
This commit is contained in:
parent
f539cf1231
commit
900c795df2
@ -69,6 +69,11 @@ class Genode::Attached_rom_dataspace
|
|||||||
Attached_rom_dataspace(char const *name)
|
Attached_rom_dataspace(char const *name)
|
||||||
: _rom(name) { _try_attach(); }
|
: _rom(name) { _try_attach(); }
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return capability of the used dataspace
|
||||||
|
*/
|
||||||
|
Dataspace_capability cap() const { return _ds->cap(); }
|
||||||
|
|
||||||
template <typename T> T *local_addr() { return _ds->local_addr<T>(); }
|
template <typename T> T *local_addr() { return _ds->local_addr<T>(); }
|
||||||
|
|
||||||
size_t size() const { return _ds->size(); }
|
size_t size() const { return _ds->size(); }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user