Loading...
Searching...
No Matches
cap_alloc.h
Go to the documentation of this file.
/*
* (c) 2008-2009 Adam Lackorzynski <adam@os.inf.tu-dresden.de>,
* Alexander Warg <warg@os.inf.tu-dresden.de>
* economic rights: Technische Universität Dresden (Germany)
*
* License: see LICENSE.spdx (in this directory or the directories above)
*/
#pragma once
#include <l4/sys/types.h>
#include <l4/sys/linkage.h>
L4_BEGIN_DECLS
L4_CV l4_cap_idx_t
l4re_util_cap_alloc(void) L4_NOTHROW;
L4_CV void
l4re_util_cap_free(l4_cap_idx_t cap) L4_NOTHROW;
L4_CV void
l4re_util_cap_free_um(l4_cap_idx_t cap) L4_NOTHROW;
L4_CV long
l4re_util_cap_last(void) L4_NOTHROW;
L4_END_DECLS
l4re_util_cap_free_um
void l4re_util_cap_free_um(l4_cap_idx_t cap) L4_NOTHROW
Return capability index to capability allocator, and unmaps the object.
l4re_util_cap_free
void l4re_util_cap_free(l4_cap_idx_t cap) L4_NOTHROW
Return capability index to capability allocator.
l4re_util_cap_alloc
L4_BEGIN_DECLS l4_cap_idx_t l4re_util_cap_alloc(void) L4_NOTHROW
Get free capability index at capability allocator.
l4re_util_cap_last
long l4re_util_cap_last(void) L4_NOTHROW
Return last capability index the allocator can return.
l4_cap_idx_t
unsigned long l4_cap_idx_t
Capability selector type.
Definition types.h:336
L4_CV
#define L4_CV
Define calling convention.
Definition linkage.h:33
L4_NOTHROW
#define L4_NOTHROW
Mark a function declaration and definition as never throwing an exception.
Definition compiler.h:161
L4_BEGIN_DECLS
#define L4_BEGIN_DECLS
Start section with C types and functions.
Definition compiler.h:165
L4_END_DECLS
#define L4_END_DECLS
End section with C types and functions.
Definition compiler.h:166
types.h
Common L4 ABI Data Types.