/* * \brief Client-side cpu session interface * \author Christian Helmuth * \date 2006-07-12 */ /* * Copyright (C) 2006-2017 Genode Labs GmbH * * This file is part of the Genode OS framework, which is distributed * under the terms of the GNU Affero General Public License version 3. */ #ifndef _INCLUDE__CPU_SESSION__CLIENT_H_ #define _INCLUDE__CPU_SESSION__CLIENT_H_ #include #include namespace Genode { struct Cpu_session_client; } struct Genode::Cpu_session_client : Rpc_client { explicit Cpu_session_client(Cpu_session_capability session) : Rpc_client(session) { } Thread_capability create_thread(Capability pd, Name const &name, Affinity::Location affinity, Weight weight, addr_t utcb = 0) override { return call(pd, name, affinity, weight, utcb); } void kill_thread(Thread_capability thread) override { call(thread); } void exception_sigh(Signal_context_capability sigh) override { call(sigh); } Affinity::Space affinity_space() const override { return call(); } Dataspace_capability trace_control() override { return call(); } int ref_account(Cpu_session_capability session) override { return call(session); } int transfer_quota(Cpu_session_capability session, size_t amount) override { return call(session, amount); } Quota quota() override { return call(); } Capability native_cpu() override { return call(); } }; #endif /* _INCLUDE__CPU_SESSION__CLIENT_H_ */