L4Re Operating System Framework
Interface and Usage Documentation
•All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
kumem_alloc
Go to the documentation of this file.
1// -*- Mode: C++ -*-
2// vim:ft=cpp
7/*
8 * (c) 2010 Adam Lackorzynski <adam@os.inf.tu-dresden.de>,
9 * Alexander Warg <warg@os.inf.tu-dresden.de>
10 * economic rights: Technische Universität Dresden (Germany)
11 *
12 * License: see LICENSE.spdx (in this directory or the directories above)
13 */
14
15#pragma once
16
17#include <l4/re/env>
18
19namespace L4Re { namespace Util {
20
44int
45kumem_alloc(l4_addr_t *mem, unsigned pages_order,
46 L4::Cap<L4::Task> task = L4Re::Env::env()->task(),
47 L4::Cap<L4Re::Rm> rm = L4Re::Env::env()->rm()) noexcept;
48
50}}
static Env const * env() noexcept
Returns the initial environment for the current task.
Definition env:95
C++ interface for capabilities.
Definition capability.h:219
Environment interface.
unsigned long l4_addr_t
Address type.
Definition l4int.h:34
int kumem_alloc(l4_addr_t *mem, unsigned pages_order, L4::Cap< L4::Task > task=L4Re::Env::env() ->task(), L4::Cap< L4Re::Rm > rm=L4Re::Env::env() ->rm()) noexcept
Allocate state area.
L4Re C++ Interfaces.
Definition cmd_control:14