L4Re Operating System Framework
Interface and Usage Documentation
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
shared_cap
Go to the documentation of this file.
1// vim:set ft=cpp: -*- Mode: C++ -*-
6/*
7 * (c) 2017 Alexander Warg <alexander.warg@kernkonzept.com>
8 *
9 * License: see LICENSE.spdx (in this directory or the directories above)
10 */
11
12#pragma once
13
14#include <l4/re/util/cap_alloc>
16
17namespace L4Re { namespace Util {
18
47template< typename T >
48using Shared_cap = L4::Detail::Shared_cap_impl<T, Smart_count_cap<L4_FP_ALL_SPACES>>;
50template< typename T >
51using shared_cap = L4::Detail::Shared_cap_impl<T, Smart_count_cap<L4_FP_ALL_SPACES>>;
52
58template< typename T >
62
97template< typename T >
98using Shared_del_cap = L4::Detail::Shared_cap_impl<T, Smart_count_cap<L4_FP_DELETE_OBJ>>;
100template< typename T >
101using shared_del_cap = L4::Detail::Shared_cap_impl<T, Smart_count_cap<L4_FP_DELETE_OBJ>>;
102
108template< typename T >
112
113}} // namespace L4Re::Util
114
L4::Cap< void > alloc() noexcept override
Allocate a capability.
_Cap_alloc & cap_alloc
Capability allocator.
Shared_del_cap< T > make_shared_del_cap()
Allocate a capability slot and wrap it in a Shared_del_cap.
Definition shared_cap:110
Shared_cap< T > make_shared_cap()
Allocate a capability slot and wrap it in a Shared_cap.
Definition shared_cap:60
L4::Detail::Shared_cap_impl< T, Smart_count_cap< L4_FP_ALL_SPACES > > shared_cap
Shared capability that implements automatic free and unmap of the capability selector.
Definition shared_cap:51
L4::Detail::Shared_cap_impl< T, Smart_count_cap< L4_FP_ALL_SPACES > > Shared_cap
Shared capability that implements automatic free and unmap of the capability selector.
Definition shared_cap:48
L4::Detail::Shared_cap_impl< T, Smart_count_cap< L4_FP_DELETE_OBJ > > Shared_del_cap
Shared capability that implements automatic free and unmap+delete of the capability selector.
Definition shared_cap:98
L4::Detail::Shared_cap_impl< T, Smart_count_cap< L4_FP_DELETE_OBJ > > shared_del_cap
Shared capability that implements automatic free and unmap+delete of the capability selector.
Definition shared_cap:101
L4Re C++ Interfaces.
Definition cmd_control:14
Capability allocator.