L4Re Operating System Framework
Interface and Usage Documentation
Loading...
Searching...
No Matches
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 >
49 = L4::Detail::Shared_cap_impl<T, L4Re::Util::Smart_count_cap<L4_FP_ALL_SPACES>>;
51template< typename T >
52using shared_cap [[deprecated("Use L4Re::Util::Shared_cap.")]]
53 = L4::Detail::Shared_cap_impl<T, L4Re::Util::Smart_count_cap<L4_FP_ALL_SPACES>>;
54
60template< typename T >
63{ return Shared_cap<T>(cap_alloc.alloc<T>()); }
64
99template< typename T >
100using Shared_del_cap
101 = L4::Detail::Shared_cap_impl<T, L4Re::Util::Smart_count_cap<L4_FP_DELETE_OBJ>>;
103template< typename T >
104using shared_del_cap [[deprecated("Use L4Re::Util::Shared_del_cap.")]]
105 = L4::Detail::Shared_cap_impl<T, L4Re::Util::Smart_count_cap<L4_FP_DELETE_OBJ>>;
106
112template< typename T >
115{ return Shared_del_cap<T>(cap_alloc.alloc<T>()); }
116
117}} // namespace L4Re::Util
118
_Cap_alloc cap_alloc
Capability allocator.
Documentation of the L4 Runtime Environment utility functionality in C++.
Definition l4re.dox:21
Shared_del_cap< T > make_shared_del_cap()
Allocate a capability slot and wrap it in a Shared_del_cap.
Definition shared_cap:112
Shared_cap< T > make_shared_cap()
Allocate a capability slot and wrap it in a Shared_cap.
Definition shared_cap:61
L4::Detail::Shared_cap_impl< T, L4Re::Util::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:99
L4::Detail::Shared_cap_impl< T, L4Re::Util::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
L4Re C++ Interfaces.
Definition cmd_control:14
Capability allocator.