genode/base-foc/src/core/pd_session_extension.cc
Stefan Kalkowski ca004658d9 Fiasco.OC: smart-pointer for kernel capabilities.
Implements Native_capability as smart-pointer type referencing Cap_index
objects. Whenever capabilities are copied, assigned, constructed, or destructed
the reference-counter of the Cap_index is incremented/decremented. When it
reaches zero the Cap_index is removed from the process-global cap_map and
gets freed. Fix for issue #32.
2012-05-09 20:50:57 +02:00

23 lines
533 B
C++

/*
* \brief Core implementation of the PD session extension
* \author Stefan Kalkowski
* \date 2011-04-14
*/
/*
* Copyright (C) 2011-2012 Genode Labs GmbH
*
* This file is part of the Genode OS framework, which is distributed
* under the terms of the GNU General Public License version 2.
*/
/* Genode includes */
#include <base/native_types.h>
/* Core includes */
#include <pd_session_component.h>
Genode::Native_capability Genode::Pd_session_component::task_cap() {
return Native_capability(_pd.native_task()); }