/* * \brief Implementation of non-core PD session upgrade * \author Stefan Kalkowski * \date 2015-05-20 */ /* * Copyright (C) 2015 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 #include #include void Genode::upgrade_pd_session_quota(Genode::size_t quota) { char buf[128]; snprintf(buf, sizeof(buf), "ram_quota=%zu", quota); Pd_session_capability cap = *static_cast(env()->pd_session()); env()->parent()->upgrade(cap, buf); }