2018-01-13 22:22:39 +01:00
|
|
|
// Copyright 2018 yuzu emulator team
|
2017-06-05 06:52:19 +02:00
|
|
|
// Licensed under GPLv2 or any later version
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2017-06-09 08:52:30 +02:00
|
|
|
#include <array>
|
2019-11-25 02:15:51 +01:00
|
|
|
#include <functional>
|
2017-06-06 07:39:26 +02:00
|
|
|
#include <memory>
|
2019-03-07 22:44:28 +01:00
|
|
|
#include <optional>
|
2018-03-19 01:22:46 +01:00
|
|
|
#include <string>
|
2018-07-19 22:10:12 +02:00
|
|
|
#include <type_traits>
|
2017-06-05 06:52:19 +02:00
|
|
|
#include <vector>
|
2021-05-16 08:49:03 +02:00
|
|
|
|
|
|
|
#include "common/assert.h"
|
2017-06-09 08:52:30 +02:00
|
|
|
#include "common/common_types.h"
|
2020-08-03 13:28:54 +02:00
|
|
|
#include "common/concepts.h"
|
2017-06-09 14:23:13 +02:00
|
|
|
#include "common/swap.h"
|
2017-06-09 08:52:30 +02:00
|
|
|
#include "core/hle/ipc.h"
|
2021-04-21 07:18:56 +02:00
|
|
|
#include "core/hle/kernel/k_auto_object.h"
|
2021-04-24 11:40:31 +02:00
|
|
|
#include "core/hle/kernel/svc_common.h"
|
2017-06-05 06:52:19 +02:00
|
|
|
|
2019-03-05 15:20:11 +01:00
|
|
|
union ResultCode;
|
|
|
|
|
2020-05-03 18:41:30 +02:00
|
|
|
namespace Core::Memory {
|
|
|
|
class Memory;
|
|
|
|
}
|
|
|
|
|
2020-11-08 21:49:45 +01:00
|
|
|
namespace IPC {
|
|
|
|
class ResponseBuilder;
|
|
|
|
}
|
|
|
|
|
2017-06-07 06:20:52 +02:00
|
|
|
namespace Service {
|
|
|
|
class ServiceFrameworkBase;
|
|
|
|
}
|
2017-06-05 06:52:19 +02:00
|
|
|
|
2017-06-07 06:20:52 +02:00
|
|
|
namespace Kernel {
|
2017-06-05 06:52:19 +02:00
|
|
|
|
2017-12-29 06:36:22 +01:00
|
|
|
class Domain;
|
|
|
|
class HLERequestContext;
|
2020-05-03 18:41:30 +02:00
|
|
|
class KernelCore;
|
2021-04-24 11:40:31 +02:00
|
|
|
class KHandleTable;
|
2021-04-24 07:04:28 +02:00
|
|
|
class KProcess;
|
2021-04-14 02:48:37 +02:00
|
|
|
class KServerSession;
|
2020-12-31 08:01:08 +01:00
|
|
|
class KThread;
|
2021-01-30 07:48:06 +01:00
|
|
|
class KReadableEvent;
|
2021-04-14 02:48:37 +02:00
|
|
|
class KSession;
|
2021-01-30 08:51:40 +01:00
|
|
|
class KWritableEvent;
|
2021-06-05 04:26:48 +02:00
|
|
|
class ServiceThread;
|
2017-06-09 14:23:13 +02:00
|
|
|
|
2019-01-01 00:09:41 +01:00
|
|
|
enum class ThreadWakeupReason;
|
|
|
|
|
2017-06-05 06:52:19 +02:00
|
|
|
/**
|
|
|
|
* Interface implemented by HLE Session handlers.
|
|
|
|
* This can be provided to a ServerSession in order to hook into several relevant events
|
|
|
|
* (such as a new connection or a SyncRequest) so they can be implemented in the emulator.
|
|
|
|
*/
|
2017-06-06 07:39:26 +02:00
|
|
|
class SessionRequestHandler : public std::enable_shared_from_this<SessionRequestHandler> {
|
2017-06-05 06:52:19 +02:00
|
|
|
public:
|
2021-06-05 04:26:48 +02:00
|
|
|
SessionRequestHandler(KernelCore& kernel, const char* service_name_);
|
2019-01-01 00:09:41 +01:00
|
|
|
virtual ~SessionRequestHandler();
|
2017-06-06 23:51:42 +02:00
|
|
|
|
2017-06-05 06:52:19 +02:00
|
|
|
/**
|
|
|
|
* Handles a sync request from the emulated application.
|
|
|
|
* @param server_session The ServerSession that was triggered for this sync request,
|
|
|
|
* it should be used to differentiate which client (As in ClientSession) we're answering to.
|
|
|
|
* TODO(Subv): Use a wrapper structure to hold all the information relevant to
|
|
|
|
* this request (ServerSession, Originator thread, Translated command buffer, etc).
|
|
|
|
* @returns ResultCode the result code of the translate operation.
|
|
|
|
*/
|
2021-05-11 01:16:36 +02:00
|
|
|
virtual ResultCode HandleSyncRequest(Kernel::KServerSession& session,
|
|
|
|
Kernel::HLERequestContext& context) = 0;
|
2017-06-05 06:52:19 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Signals that a client has just connected to this HLE handler and keeps the
|
|
|
|
* associated ServerSession alive for the duration of the connection.
|
|
|
|
* @param server_session Owning pointer to the ServerSession associated with the connection.
|
|
|
|
*/
|
2021-04-24 02:00:15 +02:00
|
|
|
void ClientConnected(KServerSession* session);
|
2017-06-05 06:52:19 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Signals that a client has just disconnected from this HLE handler and releases the
|
|
|
|
* associated ServerSession.
|
|
|
|
* @param server_session ServerSession associated with the connection.
|
|
|
|
*/
|
2021-04-24 02:00:15 +02:00
|
|
|
void ClientDisconnected(KServerSession* session);
|
2021-06-05 04:26:48 +02:00
|
|
|
|
|
|
|
std::weak_ptr<ServiceThread> GetServiceThread() const {
|
|
|
|
return service_thread;
|
|
|
|
}
|
|
|
|
|
|
|
|
protected:
|
|
|
|
KernelCore& kernel;
|
|
|
|
std::weak_ptr<ServiceThread> service_thread;
|
2017-06-05 06:52:19 +02:00
|
|
|
};
|
|
|
|
|
2021-05-16 08:49:03 +02:00
|
|
|
using SessionRequestHandlerPtr = std::shared_ptr<SessionRequestHandler>;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Manages the underlying HLE requests for a session, and whether (or not) the session should be
|
|
|
|
* treated as a domain. This is managed separately from server sessions, as this state is shared
|
|
|
|
* when objects are cloned.
|
|
|
|
*/
|
|
|
|
class SessionRequestManager final {
|
|
|
|
public:
|
2021-06-05 04:26:48 +02:00
|
|
|
explicit SessionRequestManager(KernelCore& kernel);
|
|
|
|
~SessionRequestManager();
|
2021-05-16 08:49:03 +02:00
|
|
|
|
|
|
|
bool IsDomain() const {
|
|
|
|
return is_domain;
|
|
|
|
}
|
|
|
|
|
|
|
|
void ConvertToDomain() {
|
|
|
|
domain_handlers = {session_handler};
|
|
|
|
is_domain = true;
|
|
|
|
}
|
|
|
|
|
|
|
|
std::size_t DomainHandlerCount() const {
|
|
|
|
return domain_handlers.size();
|
|
|
|
}
|
|
|
|
|
|
|
|
bool HasSessionHandler() const {
|
|
|
|
return session_handler != nullptr;
|
|
|
|
}
|
|
|
|
|
|
|
|
SessionRequestHandler& SessionHandler() {
|
|
|
|
return *session_handler;
|
|
|
|
}
|
|
|
|
|
|
|
|
const SessionRequestHandler& SessionHandler() const {
|
|
|
|
return *session_handler;
|
|
|
|
}
|
|
|
|
|
|
|
|
void CloseDomainHandler(std::size_t index) {
|
|
|
|
if (index < DomainHandlerCount()) {
|
|
|
|
domain_handlers[index] = nullptr;
|
|
|
|
} else {
|
|
|
|
UNREACHABLE_MSG("Unexpected handler index {}", index);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
SessionRequestHandlerPtr DomainHandler(std::size_t index) const {
|
|
|
|
ASSERT_MSG(index < DomainHandlerCount(), "Unexpected handler index {}", index);
|
|
|
|
return domain_handlers.at(index);
|
|
|
|
}
|
|
|
|
|
|
|
|
void AppendDomainHandler(SessionRequestHandlerPtr&& handler) {
|
|
|
|
domain_handlers.emplace_back(std::move(handler));
|
|
|
|
}
|
|
|
|
|
|
|
|
void SetSessionHandler(SessionRequestHandlerPtr&& handler) {
|
|
|
|
session_handler = std::move(handler);
|
|
|
|
}
|
|
|
|
|
2021-06-05 04:26:48 +02:00
|
|
|
std::weak_ptr<ServiceThread> GetServiceThread() const {
|
|
|
|
return session_handler->GetServiceThread();
|
|
|
|
}
|
|
|
|
|
2021-05-16 08:49:03 +02:00
|
|
|
private:
|
|
|
|
bool is_domain{};
|
|
|
|
SessionRequestHandlerPtr session_handler;
|
|
|
|
std::vector<SessionRequestHandlerPtr> domain_handlers;
|
2021-06-05 04:26:48 +02:00
|
|
|
|
|
|
|
private:
|
|
|
|
KernelCore& kernel;
|
|
|
|
std::weak_ptr<ServiceThread> service_thread;
|
2021-05-16 08:49:03 +02:00
|
|
|
};
|
|
|
|
|
2017-06-07 06:20:52 +02:00
|
|
|
/**
|
|
|
|
* Class containing information about an in-flight IPC request being handled by an HLE service
|
|
|
|
* implementation. Services should avoid using old global APIs (e.g. Kernel::GetCommandBuffer()) and
|
|
|
|
* when possible use the APIs in this class to service the request.
|
2017-06-09 14:23:13 +02:00
|
|
|
*
|
|
|
|
* HLE handle protocol
|
|
|
|
* ===================
|
|
|
|
*
|
|
|
|
* To avoid needing HLE services to keep a separate handle table, or having to directly modify the
|
|
|
|
* requester's table, a tweaked protocol is used to receive and send handles in requests. The kernel
|
|
|
|
* will decode the incoming handles into object pointers and insert a id in the buffer where the
|
|
|
|
* handle would normally be. The service then calls GetIncomingHandle() with that id to get the
|
|
|
|
* pointer to the object. Similarly, instead of inserting a handle into the command buffer, the
|
|
|
|
* service calls AddOutgoingHandle() and stores the returned id where the handle would normally go.
|
|
|
|
*
|
|
|
|
* The end result is similar to just giving services their own real handle tables, but since these
|
|
|
|
* ids are local to a specific context, it avoids requiring services to manage handles for objects
|
|
|
|
* across multiple calls and ensuring that unneeded handles are cleaned up.
|
2017-06-07 06:20:52 +02:00
|
|
|
*/
|
|
|
|
class HLERequestContext {
|
|
|
|
public:
|
2020-05-03 18:41:30 +02:00
|
|
|
explicit HLERequestContext(KernelCore& kernel, Core::Memory::Memory& memory,
|
2021-04-14 02:48:37 +02:00
|
|
|
KServerSession* session, KThread* thread);
|
2017-06-07 06:20:52 +02:00
|
|
|
~HLERequestContext();
|
|
|
|
|
|
|
|
/// Returns a pointer to the IPC command buffer for this request.
|
2017-06-09 08:52:30 +02:00
|
|
|
u32* CommandBuffer() {
|
|
|
|
return cmd_buf.data();
|
2017-06-07 06:20:52 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns the session through which this request was made. This can be used as a map key to
|
|
|
|
* access per-client data on services.
|
|
|
|
*/
|
2021-04-14 02:48:37 +02:00
|
|
|
Kernel::KServerSession* Session() {
|
2017-12-29 06:36:22 +01:00
|
|
|
return server_session;
|
2017-06-07 06:20:52 +02:00
|
|
|
}
|
|
|
|
|
2017-06-19 01:05:12 +02:00
|
|
|
/// Populates this context with data from the requesting process/thread.
|
2021-04-24 11:40:31 +02:00
|
|
|
ResultCode PopulateFromIncomingCommandBuffer(const KHandleTable& handle_table,
|
2018-10-20 20:34:41 +02:00
|
|
|
u32_le* src_cmdbuf);
|
|
|
|
|
2017-06-19 01:05:12 +02:00
|
|
|
/// Writes data from this context back to the requesting process/thread.
|
2021-05-08 18:11:36 +02:00
|
|
|
ResultCode WriteToOutgoingCommandBuffer(KThread& requesting_thread);
|
2017-10-15 04:18:42 +02:00
|
|
|
|
2021-05-08 11:50:47 +02:00
|
|
|
u32_le GetHipcCommand() const {
|
2017-10-15 04:18:42 +02:00
|
|
|
return command;
|
|
|
|
}
|
|
|
|
|
2021-05-08 11:50:47 +02:00
|
|
|
u32_le GetTipcCommand() const {
|
|
|
|
return static_cast<u32_le>(command_header->type.Value()) -
|
|
|
|
static_cast<u32_le>(IPC::CommandType::TIPC_CommandRegion);
|
|
|
|
}
|
|
|
|
|
|
|
|
u32_le GetCommand() const {
|
|
|
|
return command_header->IsTipc() ? GetTipcCommand() : GetHipcCommand();
|
|
|
|
}
|
|
|
|
|
2021-05-08 11:21:50 +02:00
|
|
|
bool IsTipc() const {
|
|
|
|
return command_header->IsTipc();
|
|
|
|
}
|
|
|
|
|
2017-10-15 04:18:42 +02:00
|
|
|
IPC::CommandType GetCommandType() const {
|
|
|
|
return command_header->type;
|
|
|
|
}
|
|
|
|
|
2021-05-16 06:40:19 +02:00
|
|
|
u64 GetPID() const {
|
|
|
|
return pid;
|
|
|
|
}
|
|
|
|
|
2021-05-08 11:50:47 +02:00
|
|
|
u32 GetDataPayloadOffset() const {
|
2017-10-15 04:18:42 +02:00
|
|
|
return data_payload_offset;
|
|
|
|
}
|
2017-06-09 14:23:13 +02:00
|
|
|
|
2017-10-19 03:38:01 +02:00
|
|
|
const std::vector<IPC::BufferDescriptorX>& BufferDescriptorX() const {
|
|
|
|
return buffer_x_desciptors;
|
|
|
|
}
|
|
|
|
|
2018-01-07 03:14:14 +01:00
|
|
|
const std::vector<IPC::BufferDescriptorABW>& BufferDescriptorA() const {
|
|
|
|
return buffer_a_desciptors;
|
|
|
|
}
|
|
|
|
|
2018-01-08 03:25:01 +01:00
|
|
|
const std::vector<IPC::BufferDescriptorABW>& BufferDescriptorB() const {
|
|
|
|
return buffer_b_desciptors;
|
|
|
|
}
|
|
|
|
|
2018-01-18 20:54:34 +01:00
|
|
|
const std::vector<IPC::BufferDescriptorC>& BufferDescriptorC() const {
|
|
|
|
return buffer_c_desciptors;
|
|
|
|
}
|
|
|
|
|
2019-03-07 22:44:28 +01:00
|
|
|
const IPC::DomainMessageHeader& GetDomainMessageHeader() const {
|
|
|
|
return domain_message_header.value();
|
2017-12-29 06:36:22 +01:00
|
|
|
}
|
|
|
|
|
2018-10-30 04:20:17 +01:00
|
|
|
bool HasDomainMessageHeader() const {
|
2019-03-07 22:44:28 +01:00
|
|
|
return domain_message_header.has_value();
|
2018-10-30 04:20:17 +01:00
|
|
|
}
|
|
|
|
|
2018-02-14 03:41:20 +01:00
|
|
|
/// Helper function to read a buffer using the appropriate buffer descriptor
|
2020-04-17 04:02:08 +02:00
|
|
|
std::vector<u8> ReadBuffer(std::size_t buffer_index = 0) const;
|
2018-02-14 03:41:20 +01:00
|
|
|
|
|
|
|
/// Helper function to write a buffer using the appropriate buffer descriptor
|
2020-04-17 04:02:08 +02:00
|
|
|
std::size_t WriteBuffer(const void* buffer, std::size_t size,
|
|
|
|
std::size_t buffer_index = 0) const;
|
2018-02-14 03:41:20 +01:00
|
|
|
|
2018-07-19 22:10:12 +02:00
|
|
|
/* Helper function to write a buffer using the appropriate buffer descriptor
|
|
|
|
*
|
2020-08-03 13:28:54 +02:00
|
|
|
* @tparam T an arbitrary container that satisfies the
|
|
|
|
* ContiguousContainer concept in the C++ standard library or a trivially copyable type.
|
2018-07-19 22:10:12 +02:00
|
|
|
*
|
2020-08-03 13:28:54 +02:00
|
|
|
* @param data The container/data to write into a buffer.
|
2018-07-19 22:10:12 +02:00
|
|
|
* @param buffer_index The buffer in particular to write to.
|
|
|
|
*/
|
2020-08-03 13:28:54 +02:00
|
|
|
template <typename T, typename = std::enable_if_t<!std::is_pointer_v<T>>>
|
|
|
|
std::size_t WriteBuffer(const T& data, std::size_t buffer_index = 0) const {
|
|
|
|
if constexpr (Common::IsSTLContainer<T>) {
|
|
|
|
using ContiguousType = typename T::value_type;
|
|
|
|
static_assert(std::is_trivially_copyable_v<ContiguousType>,
|
|
|
|
"Container to WriteBuffer must contain trivially copyable objects");
|
|
|
|
return WriteBuffer(std::data(data), std::size(data) * sizeof(ContiguousType),
|
|
|
|
buffer_index);
|
|
|
|
} else {
|
|
|
|
static_assert(std::is_trivially_copyable_v<T>, "T must be trivially copyable");
|
|
|
|
return WriteBuffer(&data, sizeof(T), buffer_index);
|
|
|
|
}
|
2018-07-19 22:10:12 +02:00
|
|
|
}
|
2018-02-14 03:41:20 +01:00
|
|
|
|
2018-02-14 06:14:17 +01:00
|
|
|
/// Helper function to get the size of the input buffer
|
2020-04-17 04:02:08 +02:00
|
|
|
std::size_t GetReadBufferSize(std::size_t buffer_index = 0) const;
|
2018-02-14 06:14:17 +01:00
|
|
|
|
2018-02-14 03:41:20 +01:00
|
|
|
/// Helper function to get the size of the output buffer
|
2020-04-17 04:02:08 +02:00
|
|
|
std::size_t GetWriteBufferSize(std::size_t buffer_index = 0) const;
|
2018-02-14 03:41:20 +01:00
|
|
|
|
2021-01-28 07:18:06 +01:00
|
|
|
/// Helper function to test whether the input buffer at buffer_index can be read
|
|
|
|
bool CanReadBuffer(std::size_t buffer_index = 0) const;
|
|
|
|
|
|
|
|
/// Helper function to test whether the output buffer at buffer_index can be written
|
|
|
|
bool CanWriteBuffer(std::size_t buffer_index = 0) const;
|
|
|
|
|
2021-03-12 16:13:31 +01:00
|
|
|
Handle GetCopyHandle(std::size_t index) const {
|
2021-05-19 04:52:52 +02:00
|
|
|
return incoming_copy_handles.at(index);
|
2021-03-12 16:13:31 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
Handle GetMoveHandle(std::size_t index) const {
|
2021-05-19 04:52:52 +02:00
|
|
|
return incoming_move_handles.at(index);
|
2021-03-12 16:13:31 +01:00
|
|
|
}
|
|
|
|
|
2021-04-21 07:18:56 +02:00
|
|
|
void AddMoveObject(KAutoObject* object) {
|
2021-05-19 04:52:52 +02:00
|
|
|
outgoing_move_objects.emplace_back(object);
|
2018-01-07 07:50:55 +01:00
|
|
|
}
|
|
|
|
|
2021-04-21 07:18:56 +02:00
|
|
|
void AddCopyObject(KAutoObject* object) {
|
2021-05-19 04:52:52 +02:00
|
|
|
outgoing_copy_objects.emplace_back(object);
|
2018-01-07 07:50:55 +01:00
|
|
|
}
|
|
|
|
|
2021-05-16 08:49:03 +02:00
|
|
|
void AddDomainObject(SessionRequestHandlerPtr object) {
|
2021-05-19 04:52:52 +02:00
|
|
|
outgoing_domain_objects.emplace_back(std::move(object));
|
2018-01-07 07:50:55 +01:00
|
|
|
}
|
|
|
|
|
2018-05-01 05:24:31 +02:00
|
|
|
template <typename T>
|
2021-05-16 08:49:03 +02:00
|
|
|
std::shared_ptr<T> GetDomainHandler(std::size_t index) const {
|
|
|
|
return std::static_pointer_cast<T>(manager->DomainHandler(index));
|
2018-05-01 05:24:31 +02:00
|
|
|
}
|
|
|
|
|
2021-05-16 08:49:03 +02:00
|
|
|
void SetSessionRequestManager(std::shared_ptr<SessionRequestManager> manager_) {
|
|
|
|
manager = std::move(manager_);
|
2018-05-01 05:24:31 +02:00
|
|
|
}
|
|
|
|
|
2018-02-15 15:22:11 +01:00
|
|
|
std::string Description() const;
|
|
|
|
|
2020-12-31 08:01:08 +01:00
|
|
|
KThread& GetThread() {
|
2019-11-26 00:28:48 +01:00
|
|
|
return *thread;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool IsThreadWaiting() const {
|
|
|
|
return is_thread_waiting;
|
|
|
|
}
|
|
|
|
|
2017-06-19 01:05:12 +02:00
|
|
|
private:
|
2020-11-08 21:49:45 +01:00
|
|
|
friend class IPC::ResponseBuilder;
|
|
|
|
|
2021-04-24 11:40:31 +02:00
|
|
|
void ParseCommandBuffer(const KHandleTable& handle_table, u32_le* src_cmdbuf, bool incoming);
|
2018-10-20 20:34:41 +02:00
|
|
|
|
2017-06-09 08:52:30 +02:00
|
|
|
std::array<u32, IPC::COMMAND_BUFFER_LENGTH> cmd_buf;
|
2021-04-14 02:48:37 +02:00
|
|
|
Kernel::KServerSession* server_session{};
|
2021-04-03 03:02:10 +02:00
|
|
|
KThread* thread;
|
|
|
|
|
2021-05-19 04:52:52 +02:00
|
|
|
std::vector<Handle> incoming_move_handles;
|
|
|
|
std::vector<Handle> incoming_copy_handles;
|
|
|
|
|
|
|
|
std::vector<KAutoObject*> outgoing_move_objects;
|
|
|
|
std::vector<KAutoObject*> outgoing_copy_objects;
|
|
|
|
std::vector<SessionRequestHandlerPtr> outgoing_domain_objects;
|
2017-10-15 04:18:42 +02:00
|
|
|
|
2019-03-07 22:44:28 +01:00
|
|
|
std::optional<IPC::CommandHeader> command_header;
|
|
|
|
std::optional<IPC::HandleDescriptorHeader> handle_descriptor_header;
|
|
|
|
std::optional<IPC::DataPayloadHeader> data_payload_header;
|
|
|
|
std::optional<IPC::DomainMessageHeader> domain_message_header;
|
2017-10-19 03:38:01 +02:00
|
|
|
std::vector<IPC::BufferDescriptorX> buffer_x_desciptors;
|
|
|
|
std::vector<IPC::BufferDescriptorABW> buffer_a_desciptors;
|
|
|
|
std::vector<IPC::BufferDescriptorABW> buffer_b_desciptors;
|
|
|
|
std::vector<IPC::BufferDescriptorABW> buffer_w_desciptors;
|
2018-01-18 20:54:34 +01:00
|
|
|
std::vector<IPC::BufferDescriptorC> buffer_c_desciptors;
|
2017-10-15 04:18:42 +02:00
|
|
|
|
2021-05-16 06:40:19 +02:00
|
|
|
u32_le command{};
|
|
|
|
u64 pid{};
|
2021-05-16 08:49:03 +02:00
|
|
|
u32 write_size{};
|
2021-05-08 11:21:50 +02:00
|
|
|
u32 data_payload_offset{};
|
|
|
|
u32 handles_offset{};
|
|
|
|
u32 domain_offset{};
|
2018-05-01 05:24:31 +02:00
|
|
|
|
2021-05-16 08:49:03 +02:00
|
|
|
std::shared_ptr<SessionRequestManager> manager;
|
2019-11-26 00:28:48 +01:00
|
|
|
bool is_thread_waiting{};
|
2020-05-03 18:41:30 +02:00
|
|
|
|
|
|
|
KernelCore& kernel;
|
|
|
|
Core::Memory::Memory& memory;
|
2017-06-07 06:20:52 +02:00
|
|
|
};
|
|
|
|
|
2017-06-05 06:52:19 +02:00
|
|
|
} // namespace Kernel
|