6d837c9e26
This patch extends the 'Parent::session()' and 'Root::session()' functions with an additional 'affinity' parameter, which is inteded to express the preferred affinity of the new session. For CPU sessions provided by core, the values will be used to select the set of CPUs assigned to the CPU session. For other services, the session affinity information can be utilized to optimize the locality of the server thread with the client. For example, to enable the IRQ session to route an IRQ to the CPU core on which the corresponding device driver (the IRQ client) is running.
57 lines
1.0 KiB
C++
57 lines
1.0 KiB
C++
/*
|
|
* \brief RAM service provided to Noux processes
|
|
* \author Josef Soentgen
|
|
* \date 2013-04-16
|
|
*/
|
|
|
|
/*
|
|
* Copyright (C) 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 _NOUX__LOCAL_RAM_SERVICE_H_
|
|
#define _NOUX__LOCAL_RAM_SERVICE_H_
|
|
|
|
/* Genode includes */
|
|
#include <base/service.h>
|
|
|
|
/* Noux includes */
|
|
#include <ram_session_component.h>
|
|
|
|
namespace Noux {
|
|
|
|
class Local_ram_service : public Service
|
|
{
|
|
private:
|
|
|
|
Rpc_entrypoint &_ep;
|
|
|
|
public:
|
|
|
|
Local_ram_service(Rpc_entrypoint &ep)
|
|
:
|
|
Service(Ram_session::service_name()), _ep(ep)
|
|
{ }
|
|
|
|
Genode::Session_capability session(const char *args, Affinity const &)
|
|
{
|
|
PDBG("Implement me!");
|
|
return Genode::Session_capability();
|
|
}
|
|
|
|
void upgrade(Genode::Session_capability, const char *args)
|
|
{
|
|
PDBG("Implement me!");
|
|
}
|
|
|
|
void close(Genode::Session_capability session)
|
|
{
|
|
PDBG("Implement me!");
|
|
}
|
|
};
|
|
}
|
|
|
|
#endif /* _NOUX__LOCAL_RAM_SERVICE_H_ */
|