mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-01 19:46:45 +00:00
cfdbccc5c2
This is a redesign of the root and parent interfaces to eliminate blocking RPC calls. - New session representation at the parent (base/session_state.h) - base-internal root proxy mechanism as migration path - Redesign of base/service.h - Removes ancient 'Connection::KEEP_OPEN' feature - Interface change of 'Child', 'Child_policy', 'Slave', 'Slave_policy' - New 'Slave::Connection' - Changed child-construction procedure to be compatible with the non-blocking parent interface and to be easier to use - The child's initial LOG session, its binary ROM session, and the linker ROM session have become part of the child's envirenment. - Session upgrading must now be performed via 'env.upgrade' instead of performing a sole RPC call the parent. To make RAM upgrades easier, the 'Connection' provides a new 'upgrade_ram' method. Issue #2120
55 lines
1.3 KiB
C++
55 lines
1.3 KiB
C++
/*
|
|
* \brief Connection to LOG service
|
|
* \author Norman Feske
|
|
* \date 2008-08-22
|
|
*/
|
|
|
|
/*
|
|
* Copyright (C) 2008-2013 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.
|
|
*/
|
|
|
|
#ifndef _INCLUDE__LOG_SESSION__CONNECTION_H_
|
|
#define _INCLUDE__LOG_SESSION__CONNECTION_H_
|
|
|
|
#include <log_session/client.h>
|
|
#include <base/connection.h>
|
|
#include <base/session_label.h>
|
|
|
|
namespace Genode { struct Log_connection; }
|
|
|
|
|
|
struct Genode::Log_connection : Connection<Log_session>, Log_session_client
|
|
{
|
|
enum { RAM_QUOTA = 8*1024UL };
|
|
|
|
/**
|
|
* Constructor
|
|
*/
|
|
Log_connection(Env &env, Session_label label = Session_label())
|
|
:
|
|
Connection<Log_session>(env, session(env.parent(),
|
|
"ram_quota=%ld, label=\"%s\"",
|
|
RAM_QUOTA, label.string())),
|
|
Log_session_client(cap())
|
|
{ }
|
|
|
|
/**
|
|
* Constructor
|
|
*
|
|
* \noapi
|
|
* \deprecated Use the constructor with 'Env &' as first
|
|
* argument instead
|
|
*/
|
|
Log_connection(Session_label label = Session_label())
|
|
:
|
|
Connection<Log_session>(session("ram_quota=%ld, label=\"%s\"",
|
|
RAM_QUOTA, label.string())),
|
|
Log_session_client(cap())
|
|
{ }
|
|
};
|
|
|
|
#endif /* _INCLUDE__LOG_SESSION__CONNECTION_H_ */
|