summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/hle_ipc.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* hle_ipc: Remove std::size_t casts where applicableLioncash2020-04-171-5/+7
| | | | | | | | | These were added in the change that enabled -Wextra on linux builds so as not to introduce interface changes in the same change as a build-system flag addition. Now that the flags are enabled, we can freely change the interface to make these unnecessary.
* kernel: Implement a more accurate IPC dispatch.bunnei2019-11-281-0/+13
|
* kernel: Replace usage of boost::intrusive_ptr with std::shared_ptr for kernel objects. (#3154)bunnei2019-11-251-18/+20
| | | | | | * kernel: Replace usage of boost::intrusive_ptr with std::shared_ptr for kernel objects. - See https://github.com/citra-emu/citra/pull/4710 for details.
* HLE/IPC: HLEContext can memorize the client thread and use it for SleepClientThreadWeiyi Wang2019-05-181-4/+4
| | | | This reduces the boilerplate that services have to write out the current thread explicitly. Using current thread instead of client thread is also semantically incorrect, and will be a problem when we implement multicore (at which time there will be multiple current threads)
* kernel/hle_ipc: Convert std::shared_ptr IPC header instances to std::optionalLioncash2019-03-081-7/+8
| | | | | | | | | There's no real need to use a shared lifetime here, since we don't actually expose them to anything else. This is also kind of an unnecessary use of the heap given the objects themselves are so small; small enough, in fact that changing over to optionals actually reduces the overall size of the HLERequestContext struct (818 bytes to 808 bytes).
* core/hle/ipc: Remove unnecessary includesLioncash2019-03-051-5/+5
| | | | | | | | | | | Removes a few inclusion dependencies from the headers or replaces existing ones with ones that don't indirectly include the required headers. This allows removing an inclusion of core/memory.h, meaning that if the memory header is ever changed in the future, it won't result in rebuilding the entirety of the HLE services (as the IPC headers are used quite ubiquitously throughout the HLE service implementations).
* core/kernel: Remove unnecessary inclusionsLioncash2019-01-011-3/+6
| | | | Gets rid of a few unnecessary header dependencies in some source files.
* hle_ipc: Refactor SleepClientThread to avoid ReadableEventZach Hilman2018-11-291-3/+1
|
* hle_ipc: Use event pair for SleepClientThreadZach Hilman2018-11-291-5/+9
|
* hle_ipc: Add member function for querying the existence of a domain headerLioncash2018-10-301-0/+4
| | | | Gets rid of the need to call the getter and then check for null.
* hle_ipc: Make GetDomainMessageHeader return a regular pointerLioncash2018-10-301-2/+2
| | | | | Nothing requires the shared owner ship here, so we can just return a plain pointer.
* kernel/process: Make the handle table per-processLioncash2018-10-201-6/+7
| | | | | | | | In the kernel, there isn't a singular handle table that everything gets tossed into or used, rather, each process gets its own handle table that it uses. This currently isn't an issue for us, since we only execute one process at the moment, but we may as well get this out of the way so it's not a headache later on.
* Port #4182 from Citra: "Prefix all size_t with std::"fearlessTobi2018-09-151-10/+10
|
* hle_ipc: Make WriteToOutgoingCommandBuffer()'s reference parameter constLioncash2018-08-091-1/+1
| | | | | This function doesn't modify anything within the reference Thread instance.
* kernel: Move object class to its own source filesLioncash2018-08-021-1/+1
| | | | | | General moving to keep kernel object types separate from the direct kernel code. Also essentially a preliminary cleanup before eliminating global kernel state in the kernel code.
* kernel: Remove unnecessary includesLioncash2018-07-311-1/+0
| | | | | Removes unnecessary direct dependencies in some headers and also gets rid of indirect dependencies that were being relied on to be included.
* hle_ipc: Make constructors explicit where applicableLioncash2018-07-241-1/+1
|
* hle_ipc: Introduce generic WriteBuffer overload for multiple container typesLioncash2018-07-191-2/+21
| | | | | | | | | | | | | | | This introduces a slightly more generic variant of WriteBuffer(). Notably, this variant doesn't constrain the arguments to only accepting std::vector instances. It accepts whatever adheres to the ContiguousContainer concept in the C++ standard library. This essentially means, std::array, std::string, and std::vector can be used directly with this interface. The interface no longer forces you to solely use containers that dynamically allocate. To ensure our overloads play nice with one another, we only enable the container-based WriteBuffer if the argument is not a pointer, otherwise we fall back to the pointer-based one.
* core/memory, core/hle/kernel: Use std::move where applicableLioncash2018-07-191-2/+2
| | | | Avoids pointless copies
* nvflinger: Fix for BufferQueue event handling.bunnei2018-07-171-1/+3
|
* ipc: Add support for PopIpcInterface() method.bunnei2018-05-021-0/+12
| | | | - This can be used for domain objects as inputs to service functions.
* GetSharedFontInOrderOfPriority (#381)David2018-05-011-5/+5
| | | | | | | | | | | | | | | | | | | | * GetSharedFontInOrderOfPriority * Update pl_u.cpp * Ability to use ReadBuffer and WriteBuffer with different buffer indexes, fixed up GetSharedFontInOrderOfPriority * switched to NGLOG * Update pl_u.cpp * Update pl_u.cpp * language_code is actually language code and not index * u32->u64 * final cleanups
* hle_ipc: Add SleepClientThread to block current thread within HLE routines.bunnei2018-03-191-0/+20
|
* hle_ipc: Use shared_ptr instead of unique_ptr to allow copies.bunnei2018-03-191-5/+5
|
* hle_ipc: Remove GetPointer(..) usage with WriteToOutgoingCommandBuffer.bunnei2018-03-191-2/+2
|
* Service/hid: stub some functionsmailwl2018-02-161-0/+2
|
* hle_ipc: Remove const from WriteBuffer size.bunnei2018-02-141-1/+1
|
* hle_ipc: Add GetReadBufferSize and check write buffer size.bunnei2018-02-141-0/+3
|
* hle_ipc: Add helper functions for reading and writing buffers.bunnei2018-02-141-0/+12
|
* ipc_helpers: Make interface domain agnostic and add header validation.bunnei2018-01-251-1/+12
|
* hle: Integrate Domain handling into ServerSession.bunnei2018-01-251-14/+2
|
* Stub PopLaunchParameter and implement Buffer C Descriptors reading on hle_ipc (#96)gdkchan2018-01-181-0/+6
| | | | | | | | | | * Stub PopLaunchParameter and implement Buffer C Descriptors reading * Address PR feedback * Ensure we push a u64 not a size_t * Fix formatting
* IPC: Push domain objects as move handles when not in a domain.Subv2018-01-171-0/+8
|
* clang-formatMerryMage2018-01-161-2/+2
|
* yuzu: Update license text to be consistent across project.bunnei2018-01-131-1/+1
|
* core: Fix recent GCC build breaks.bunnei2018-01-121-2/+2
|
* IPC: Corrected some definitions for the buffer C descriptor flags.Subv2018-01-111-0/+4
|
* IPC: Add functions to read the input move/copy objects from an IPC request.Subv2018-01-071-0/+12
|
* IPC Cleanup: Remove 3DS-specific code and translate copy, move and domain objects in IPC requests.Subv2018-01-071-22/+17
| | | | Popping objects from the buffer is still not implemented.
* IPC: Use the correct size when pushing raw data to the command buffer and fixed pushing domain objects.Subv2018-01-071-2/+6
| | | | Domain object ids are always stored immediately after the raw data.
* kernel: Fix implementation of ConvertSessionToDomain.bunnei2017-12-291-5/+24
|
* service: Return proper result code for IPC::CommandType::Close.bunnei2017-11-011-1/+1
|
* hle_ipc: Parse out buffer X/A/B/B descriptors from incoming command buffer.bunnei2017-10-191-0/+8
|
* hle: Implement ConvertSessionToDomain, various cleanups.bunnei2017-10-151-1/+2
|
* hle: Initial implementation of NX service framework and IPC.bunnei2017-10-151-2/+23
|
* Kernel/IPC: Make HLERequestContext usable from outside kernelYuri Kunde Schlesner2017-06-191-3/+4
|
* Kernel/IPC: Use boost::small_vector for HLE context objectsYuri Kunde Schlesner2017-06-121-1/+3
|
* Kernel: Allow clearing request_objects to re-use buffer spaceYuri Kunde Schlesner2017-06-111-0/+7
| | | | | Reduces the necessary allocation to max(in_handles, out_handles) rather than (in_handles + out_handles).
* Kernel: Basic support for IPC translation for HLE servicesYuri Kunde Schlesner2017-06-111-2/+35
|
* Kernel: Add methods in HLERequestContext abstracting handle creationYuri Kunde Schlesner2017-06-111-0/+3
|
* ServiceFramework: Use separate copy of command bufferYuri Kunde Schlesner2017-06-111-3/+6
| | | | | | Copy the IPC command buffer to/from the request context before/after the handler is invoked. This is part of a move away from using global data for handling IPC requests.
* Service: Add new ServiceFramework framework for writing HLE servicesYuri Kunde Schlesner2017-06-081-2/+34
| | | | | | | | | | | | The old "Interface" class had a few problems such as using free functions (Which didn't allow you to write the service handler as if it were a regular class.) which weren't very extensible. (Only received one parameter with a pointer to the Interface object.) The new ServiceFramework aims to solve these problems by working with member functions and passing a generic context struct as parameter. This struct can be extended in the future without having to update all existing service implementations.
* Kernel: Remove some unnecessary namespace qualificationsYuri Kunde Schlesner2017-06-061-4/+6
|
* Kernel: Add a dedicated SetHleHandler method to ServerPort/ServerSessionYuri Kunde Schlesner2017-06-061-1/+2
| | | | | | This allows attaching a HLE handle to a ServerPort at any point after it is created, allowing port/session creation to be generic between HLE and regular services.
* HLE: Move SessionRequestHandler from Service:: to Kernel::Yuri Kunde Schlesner2017-06-061-0/+52
Most of the code that works with this is or will be in the kernel, so it's a more appropriate place for it to be.