summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/k_client_port.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2023-12-23kernel: fix resource limit imbalanceLiam1-2/+2
2023-12-23general: properly support multiple memory instancesLiam1-2/+1
2023-12-07kernel: implement light IPCLiam1-0/+69
2023-03-13kernel: remove kernel_Liam1-6/+6
2023-03-13kernel: convert KPort, KSessionLiam1-39/+34
2023-03-01service: move hle_ipc from kernelLiam1-1/+0
2023-02-14general: rename CurrentProcess to ApplicationProcessLiam1-1/+1
2023-02-13kernel: use GetCurrentProcessLiam1-0/+1
2022-11-10kernel/svc_types: refreshLiam1-1/+1
2022-10-31kernel: invert session request handling flowLiam1-3/+2
2022-07-27chore: make yuzu REUSE compliantAndrea Pappacoda1-3/+2
[REUSE] is a specification that aims at making file copyright information consistent, so that it can be both human and machine readable. It basically requires that all files have a header containing copyright and licensing information. When this isn't possible, like when dealing with binary assets, generated files or embedded third-party dependencies, it is permitted to insert copyright information in the `.reuse/dep5` file. Oh, and it also requires that all the licenses used in the project are present in the `LICENSES` folder, that's why the diff is so huge. This can be done automatically with `reuse download --all`. The `reuse` tool also contains a handy subcommand that analyzes the project and tells whether or not the project is (still) compliant, `reuse lint`. Following REUSE has a few advantages over the current approach: - Copyright information is easy to access for users / downstream - Files like `dist/license.md` do not need to exist anymore, as `.reuse/dep5` is used instead - `reuse lint` makes it easy to ensure that copyright information of files like binary assets / images is always accurate and up to date To add copyright information of files that didn't have it I looked up who committed what and when, for each file. As yuzu contributors do not have to sign a CLA or similar I couldn't assume that copyright ownership was of the "yuzu Emulator Project", so I used the name and/or email of the commit author instead. [REUSE]: https://reuse.software Follow-up to 01cf05bc75b1e47beb08937439f3ed9339e7b254
2022-06-27core: Replace all instances of ResultCode with Resultgerman771-2/+2
2021-06-10hle: kernel: KClientPort: Add an assert for session count.bunnei1-0/+3
- Prevents us from over decrementing num_sessions.
2021-06-10hle: service: sm: Fix GetService setup of session & port.bunnei1-1/+1
2021-06-07hle: kernel: KAutoObjectWithListContainer: Use boost::instrusive::rbtree.bunnei1-2/+2
- Fixes some crashes introduced by our common intrusive red/black tree impl.
2021-06-05hle: kernel: Refactor to allocate a ServiceThread per service handler.bunnei1-2/+3
- Previously, we would allocate a thread per session, which adds new threads on CloneCurrentObject. - This results in race conditions with N sessions queuing requests to the same service interface. - Fixes Pokken Tournament DX crashes/softlocks, which were regressed by #6347.
2021-06-02general: Replace RESULT_SUCCESS with ResultSuccessMorph1-1/+1
Transition to PascalCase for result names.
2021-05-21Revert "WORKAROUND: temp. disable session resource limits while we work out issues"bunnei1-4/+4
This reverts commit fc086f93b2165b5c210cb7dcd6c18ebe17f1fd7b.
2021-05-11WORKAROUND: temp. disable session resource limits while we work out issuesbunnei1-4/+4
2021-05-11hle: kernel: KClientPort: Cleanup comment format.bunnei1-1/+1
2021-05-08kernel: Eliminate variable shadowingLioncash1-1/+1
Now that the large kernel refactor is merged, we can eliminate the remaining variable shadowing cases.
2021-05-06hle: kernel: Migrate KPort, KClientPort, and KServerPort to KAutoObject.bunnei1-26/+93
2021-05-06hle: kernel: Migrate KServerPort to KAutoObject.bunnei1-2/+2
2021-05-06hle: kernel: Migrate KClientPort to KAutoObject.bunnei1-10/+21
2021-05-06hle: kernel: Migrate KSession, KClientSession, and KServerSession to KAutoObject.bunnei1-7/+7
2021-05-06hle: kernel: svc_results: Update naming..bunnei1-1/+1
2021-05-06hle: kernel: Refactor IPC interfaces to not use std::shared_ptr.bunnei1-1/+1
2021-02-13kernel: Unify result codes (#5890)Chloe1-2/+2
* kernel: Unify result codes Drop the usage of ERR_NAME convention in kernel for ResultName. Removed seperation between svc_results.h & errors.h as we mainly include both most of the time anyways. * oops * rename errors to svc_results
2021-01-11core: hle: kernel: Update KSynchronizationObject.bunnei1-3/+0
2020-06-27General: Cleanup legacy code.Fernando Sahmkow1-1/+1
2019-12-08kernel: Remove unnecessary includesLioncash1-1/+0
Over the course of the changes to the kernel code, a few includes are no longer necessary, particularly with the change over to std::shared_ptr from Boost's intrusive_ptr.
2019-11-28kernel: Implement a more accurate IPC dispatch.bunnei1-9/+5
2019-11-25kernel: Replace usage of boost::intrusive_ptr with std::shared_ptr for kernel objects. (#3154)bunnei1-3/+4
* 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.
2019-04-06kernel/server_session: Return a std::pair from CreateSessionPair()Lioncash1-6/+4
Keeps the return type consistent with the function name. While we're at it, we can also reduce the amount of boilerplate involved with handling these by using structured bindings.
2019-03-11kernel/server_port: Make data members privateLioncash1-4/+5
With this, all kernel objects finally have all of their data members behind an interface, making it nicer to reason about interactions with other code (as external code no longer has the freedom to totally alter internals and potentially messing up invariants).
2018-10-06Added forward define for ServerPortDavid Marcec1-0/+4
2018-08-29kernel: Eliminate kernel global stateLioncash1-2/+2
As means to pave the way for getting rid of global state within core, This eliminates kernel global state by removing all globals. Instead this introduces a KernelCore class which acts as a kernel instance. This instance lives in the System class, which keeps its lifetime contained to the lifetime of the System class. This also forces the kernel types to actually interact with the main kernel instance itself instead of having transient kernel state placed all over several translation units, keeping everything together. It also has a nice consequence of making dependencies much more explicit. This also makes our initialization a tad bit more correct. Previously we were creating a kernel process before the actual kernel was initialized, which doesn't really make much sense. The KernelCore class itself follows the PImpl idiom, which allows keeping all the implementation details sealed away from everything else, which forces the use of the exposed API and allows us to avoid any unnecessary inclusions within the main kernel header.
2018-08-07client_port: Make all data members privateLioncash1-2/+10
These members don't need to be entirely exposed, we can instead expose an API to operate on them without directly needing to mutate them We can also guard against overflow/API misuse this way as well, given active_sessions is an unsigned value.
2018-08-02kernel: Move object class to its own source filesLioncash1-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.
2018-07-31kernel: Remove unnecessary includesLioncash1-1/+2
Removes unnecessary direct dependencies in some headers and also gets rid of indirect dependencies that were being relied on to be included.
2018-01-21Format: Run the new clang format on everythingJames Rowe1-1/+1
2017-06-06Kernel: Add a dedicated SetHleHandler method to ServerPort/ServerSessionYuri Kunde Schlesner1-7/+4
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.
2017-06-06HLE: Move SessionRequestHandler from Service:: to Kernel::Yuri Kunde Schlesner1-0/+1
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.
2017-05-25Kernel: Centralize error definitions in errors.hYuri Kunde Schlesner1-2/+2
2017-05-15Kernel: Use a Session object to keep track of the status of a Client/Server session pair.Subv1-8/+5
Reduce the associated port's connection count when a ServerSession is destroyed.
2016-12-14Fixed the codestyle to match our clang-format rules.Subv1-2/+4
2016-12-08Added a framework for partially handling Session disconnections.Subv1-2/+6
Further implementation will happen in a future commit. Fixes a regression.
2016-12-08Use std::move where appropriate.Subv1-1/+4
2016-12-05Return an error code when connecting to a saturated port.Subv1-2/+9
The error code was taken from the 3DS kernel.
2016-12-05Split SessionRequestHandler::HandleSyncRequest into HandleSyncRequest, TranslateRequest and HandleSyncRequestImpl.Subv1-0/+1
HandleSyncRequest now takes care of calling the command buffer translate function before actually invoking the command handler for HLE services.
2016-12-05KServerPorts now have an HLE handler "template", which is inherited by all ServerSessions created from it.Subv1-1/+9
2016-12-01Fixed the rebase mistakes.Subv1-1/+0
2016-12-01A bit of a redesign.Subv1-14/+0
Sessions and Ports are now detached from each other. HLE services are handled by means of a SessionRequestHandler class, Interface now inherits from this class. The File and Directory classes are no longer kernel objects, but SessionRequestHandlers instead, bound to a ServerSession when requested. File::OpenLinkFile now creates a new session pair and binds the File instance to it.
2016-12-01IPC/HLE: Associate the ClientSessions with their parent port's HLE interface if it exists.Subv1-9/+1
Pass the triggering ServerSession to the HLE command handler to differentiate which session caused the request.
2016-12-01Kernel/HLE: Service::Interface no longer inherits from any Kernel object, and is now its own standalone class.Subv1-0/+23
Interface is now used by aggregation in ClientPort, to forward service commands to their HLE implementation if needed.
2016-12-01 Kernel/IPC: Use Ports and Sessions as the fundamental building block of Inter Process Communication.Subv1-0/+7
All handles obtained via srv::GetServiceHandle or svcConnectToPort are references to ClientSessions. Service modules will wait on the counterpart of those ClientSessions (Called ServerSessions) using svcReplyAndReceive or svcWaitSynchronization[1|N], and will be awoken when a SyncRequest is performed. HLE Interfaces are now ClientPorts which override the HandleSyncRequest virtual member function to perform command handling immediately.
2016-09-21Use negative priorities to avoid special-casing the self-includeYuri Kunde Schlesner1-1/+1
2016-09-21Remove empty newlines in #include blocks.Emmanuel Gil Peyrot1-2/+1
This makes clang-format useful on those. Also add a bunch of forgotten transitive includes, which otherwise prevented compilation.
2016-09-19Manually tweak source formatting and then re-run clang-formatYuri Kunde Schlesner1-4/+2
2016-09-18Sources: Run clang-format on everything.Emmanuel Gil Peyrot1-2/+4
2016-06-05Kernel: Added ClientPort and ServerPort classes.Subv1-0/+16
This is part of an ongoing effort to implement support for multiple processes.