summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/sm (unfollow)
Commit message (Collapse)AuthorFilesLines
2024-01-24Rework time service to fix time passing offline.Kelebek11-2/+13
2023-12-23kernel: fix resource limit imbalanceLiam1-4/+3
2023-12-23general: properly support multiple memory instancesLiam2-21/+23
2023-12-10sm:: fix tipc deserializationLiam2-7/+25
2023-12-09service: use interface factory in server managerLiam2-5/+8
2023-12-06kernel: implement remaining IPC syscallsLiam1-2/+0
2023-08-08core: remove ResultVal typeLiam2-22/+25
2023-04-30kernel: match calls to Register and UnregisterLiam2-0/+6
2023-03-13kernel: convert KPort, KSessionLiam2-3/+3
2023-03-07hle: rename legacy errors to ResultsLiam1-12/+12
2023-03-01service: move hle_ipc from kernelLiam4-29/+28
2023-03-01sm:: remove unused memberLiam1-1/+0
2023-02-21sm:: fix lingering session initialization issuesLiam1-2/+7
2023-02-21sm:: support service registration deferralLiam2-3/+31
2023-02-21service: refactor server architectureLiam3-21/+26
Converts services to have their own processes
2022-11-10kernel/svc_types: refreshLiam1-2/+2
2022-10-31sm:: avoid excessive port recreationLiam2-14/+18
2022-10-31k_server_session: add SendReplyHLELiam1-4/+1
2022-10-31kernel: invert session request handling flowLiam3-15/+20
2022-10-31kernel: more complete fix for KPort reference countingLiam2-13/+27
2022-10-30k_server_session: fix crashesLiam1-1/+0
2022-10-19kernel: remove most SessionRequestManager handling from KServerSessionLiam1-2/+3
2022-10-12k_server_session: preliminary support for userspace server sessionsLiam1-1/+2
2022-06-27core: Replace all instances of ResultCode with Resultgerman773-13/+13
2022-04-23general: Convert source file copyright comments over to SPDXMorph4-12/+8
This formats all copyright comments according to SPDX formatting guidelines. Additionally, this resolves the remaining GPLv2 only licensed files by relicensing them to GPLv2.0-or-later.
2022-04-08hle: kernel: Unify and integrate reference tracking for KServerPort/KServerSession.bunnei1-0/+1
- These are not managed elsewhere, and need to be tracked and closed on emulation shutdown.
2022-04-08hle: service: sm: Remove manual tracking of KServerPorts.bunnei2-8/+1
2022-04-02hle: service: Add option for service interfaces to create or use the default thread.bunnei1-1/+1
2022-03-15core: hle: service: sm: Fix KPort reference count.bunnei1-0/+2
2021-11-04core: Remove unused includesameerj3-5/+0
2021-11-02general: Remove MakeResult helpersMorph1-2/+2
This is made obsolete by the presence of implicit constructors.
2021-07-21hle: service: sm: Refactor to better manage ports.bunnei2-38/+41
2021-07-14service: Append service name prefix to common filenamesMorph3-2/+2
2021-06-10hle: service: sm: Remove redundant session reservation, etc.bunnei1-17/+9
- We were double-reserving, causing us to run out of sessions in Pokemon Sword & Shield.
2021-06-10hle: service: sm: Fix GetService setup of session & port.bunnei1-4/+4
2021-06-05hle: kernel: Refactor to allocate a ServiceThread per service handler.bunnei2-28/+11
- 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 ResultSuccessMorph2-6/+6
Transition to PascalCase for result names.
2021-05-21hle: kernel: Implement CloneCurrentObject and improve session management.bunnei3-14/+39
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: service: sm: Add TIPC support.bunnei2-41/+66
- Fixes our error checking of names as well.
2021-05-11hle: service: sm: GetService: Reserve session resource when we create a KSession.bunnei1-0/+7
2021-05-11hle: service: sm: Improve Initialize implementation.bunnei2-0/+3
2021-05-11hle: kernel: KSession: Improve implementation of CloneCurrentObject.bunnei1-2/+10
2021-05-11hle: service: sm: Increase point buffer size.bunnei1-1/+1
2021-05-06hle: kernel: Remove deprecated Object class.bunnei2-2/+2
2021-05-06hle: kernel: Migrate KPort, KClientPort, and KServerPort to KAutoObject.bunnei2-22/+22
2021-05-06hle: kernel: Migrate KServerPort to KAutoObject.bunnei2-11/+10
2021-05-06hle: kernel: Migrate KClientPort to KAutoObject.bunnei2-7/+11
2021-05-06hle: kernel: Migrate KSession, KClientSession, and KServerSession to KAutoObject.bunnei3-20/+15
2021-05-06hle: kernel: Refactor IPC interfaces to not use std::shared_ptr.bunnei2-4/+6
2021-04-09sm: Use proper names, update to 12.xgerman771-4/+5
2021-01-11core: hle: kernel: Update KSynchronizationObject.bunnei1-3/+0
2020-11-27service: Eliminate usages of the global system instanceLioncash4-11/+19
Completely removes all usages of the global system instance within the services code by passing in the using system instance to the services.
2020-09-17service/sm: Slightly more efficient string name validationLioncash1-2/+2
We can check the end of the string first for null-termination, rather than the beginning of the string.
2020-09-17service/sm: Eliminate dependency on the global system instanceLioncash2-6/+8
2020-09-07service: Remove two usages of the global system accessorLioncash1-1/+1
Removes more instances of reliance on global state.
2020-08-07common/concepts: Rename IsBaseOf to DerivedFromLioncash1-1/+1
This makes it more inline with its currently unavailable standardized analogue std::derived_from. While we're at it, we can also make the template match the requirements of the standardized variant as well.
2020-08-03sm: Make use of IsBaseOf for GetServiceDavid Marcec1-3/+2
2020-06-29Remove duplicate functionsVolcaEM1-2/+0
2020-06-29Use decimal instead of hexadecimalVolcaEM1-3/+5
Co-authored-by: David <25727384+ogniK5377@users.noreply.github.com>
2020-06-29service: Update function tablesVolcaEM2-12/+13
2020-06-27General: Cleanup legacy code.Fernando Sahmkow1-1/+1
2020-04-29Don't fail silently for vi, sm, set and ns servicesDavid Marcec1-3/+9
2020-03-23sm/controller: Increase PointerBufferSizeFearlessTobi1-1/+1
This increases the PointerBufferSize as a lager one is required by some services. This change is still not hw-accurate, but it is proven to work in Ryujinx. Instead of using a hardcoded size, we should figure out the specific values for each service in the future. Some of them can be taken from Atmosphere: https://github.com/Atmosphere-NX/Atmosphere/search?q=PointerBufferSize.
2019-11-28kernel: Implement a more accurate IPC dispatch.bunnei3-19/+25
2019-11-25kernel: Replace usage of boost::intrusive_ptr with std::shared_ptr for kernel objects. (#3154)bunnei3-9/+9
* 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-03-11kernel/server_port: Make data members privateLioncash1-1/+1
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).
2019-03-06kernel/server_session: Make data members privateLioncash1-1/+1
Makes it much nicer to locally reason about server session behavior, as part of its functionality isn't placed around other classes.
2018-12-19service/sm: Improve debug log for RegisterServiceLioncash1-4/+5
Now it also indicates the name and max session count. This also gives a name to the unknown bool. This indicates if the created port is supposed to be using light handles or regular handles internally. This is passed to the respective svcCreatePort parameter internally.
2018-12-06hle/service, hle/sm: Compress usages of MakeResult()Lioncash1-2/+2
These auto-deduce the result based off its arguments, so there's no need to do that work for the compiler, plus, the function return value itself already indicates what we're returning.
2018-12-06hle/service, hle/sm: Use structured bindings where applicableLioncash1-3/+1
Gets rid of the need to keep the variables separate from their actual initialization spots.
2018-11-26Changed logging to be "Log before execution", Added more error logging, all services should now log on some levelDavid Marcec2-6/+9
2018-11-24service/sm: Take std::string by const reference in UnregisterServiceLioncash2-2/+2
Avoids the need to create a copy of the std::string instance (potentially allocating). The only reason RegisterService takes its argument by value is because it's std::moved internally.
2018-11-04sm: Implement RegisterService and UnregisterServiceZach Hilman2-2/+55
These are needed by Edizon to boot. They are used to see if a user is using SX OS, as SX OS registers a custom service called 'tx' and attempting to register a service of the same name lets the application know if it is present.
2018-10-06Ported #4296 from citraDavid Marcec1-0/+19
This will allow us to easily remove the use of "NFC" in "System"
2018-09-25service: Add missing headers inclusions where applicableLioncash1-0/+3
Gets rid of a few indirect inclusions.
2018-09-19Removed the use of rp.MakeBuilderDavid Marcec1-3/+2
Due to keeping the code style consistent in the yuzu codebase. `rb = rp.MakeBuilder(...)` was replaced with `rb{ctx, ...}`
2018-09-14services/sm: Amend error code constantsLioncash2-8/+6
Courtesy of @ogniK5377. This also moves them into the cpp file and limits the visibility to where they're directly used. It also gets rid of unused or duplicate error codes.
2018-09-06core/core: Remove unnecessary sm/controller includeLioncash4-1/+5
The only reason this include was necessary, was because the constructor wasn't defaulted in the cpp file and the compiler would inline it wherever it was used. However, given Controller is forward declared, all those inlined constructors would see an incomplete type, causing a compilation failure. So, we just place the constructor in the cpp file, where it can see the complete type definition, allowing us to remove this include.
2018-08-29kernel: Eliminate kernel global stateLioncash1-1/+4
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-15kernel/server_session: Add IsSession() member functionLioncash1-1/+1
Allows querying the inverse of IsDomain() to make things more readable. This will likely also be usable in the event of implementing ConvertDomainToSession().
2018-08-15sm/controller: Correct return value of QueryPointerBufferSizeLioncash1-1/+1
This should be returning a u16 according to Switch Brew.
2018-08-02kernel: Move object class to its own source filesLioncash1-3/+5
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-19hle/service: Make constructors explicit where applicableLioncash1-1/+1
Prevents implicit construction and makes these lingering non-explicit constructors consistent with the rest of the other classes in services.
2018-07-03Update clang formatJames Rowe1-2/+1
2018-07-03Rename logging macro back to LOG_*James Rowe2-7/+7
2018-05-02general: Make formatting of logged hex values more straightforwardLioncash1-1/+1
This makes the formatting expectations more obvious (e.g. any zero padding specified is padding that's entirely dedicated to the value being printed, not any pretty-printing that also gets tacked on).
2018-04-24sm: Move logging macros over to new fmt-compatible onesLioncash2-9/+8
2018-04-21core: Relocate g_service_manager to the System classLioncash2-4/+6
Converts the service manager from a global into an instance-based variable.
2018-04-20service: Use nested namespace specifiers where applicableLioncash4-16/+8
Tidies up namespace declarations
2018-02-05Dont call UNIMPLEMENTED for 'empty services', just return error codeDavid Marcec1-0/+2
2018-02-03controller: DuplicateSession should return a ClientSession.bunnei1-4/+9
2018-01-25ResponseBuilder: Use a bit field for customizing instead of always_move_handles.bunnei2-2/+3
2018-01-25hle: Rename RequestBuilder to ResponseBuilder.bunnei2-6/+6
2018-01-25service: Fix all incorrect IPC response headers.bunnei2-5/+4
2018-01-25hle: Integrate Domain handling into ServerSession.bunnei1-7/+5
2018-01-25hle: Remove Domain and SyncObject kernel objects.bunnei1-1/+0
2018-01-20Added CreateSharedMemory & UNIMPLEMENTED() for non existent services. (#113)David1-0/+1
* Added svcCreateSharedMemory * Services which are not implemented now throw UNIMPLEMENTED() * clang-format * changed perms to u32 * removed camelcase
2018-01-18controller: Use DuplicateSession for DuplicateSessionEx.bunnei2-1/+8
2018-01-13yuzu: Update license text to be consistent across project.bunnei4-4/+4
2018-01-07IPC: Make DuplicateSession return the Domain instead of the Session if the request was made on a Domain interface.Subv1-1/+5
2018-01-07IPC: Corrected some command headers in the IPC Controller interface.Subv1-4/+2
2018-01-07IPC: Take the number of domain objects as a parameter in MakeBuilder.Subv1-2/+2
2018-01-07SM: Fixed connecting to services with an 8-byte name, like appletOE.Subv1-12/+4
2018-01-07IPC: Fixed pushing ResultCodes into the command buffer.Subv1-2/+2
They should have 32 bits of padding after the error code now.
2018-01-07IPC Cleanup: Remove 3DS-specific code and translate copy, move and domain objects in IPC requests.Subv2-2/+2
Popping objects from the buffer is still not implemented.
2018-01-07IPC: Skip the entire u64 of the command id when receiving an IPC request.Subv1-14/+3
Service code now doesn't have to deal with this.
2017-12-29controller: Implement DuplicateSession.bunnei2-9/+11
2017-12-29kernel: Fix implementation of ConvertSessionToDomain.bunnei1-12/+6
2017-12-28service: Clean up apm/lm/applet_oe/controller/sm ctor/dtor.bunnei4-8/+4
2017-11-01hle: Use Switch formatted result codes.bunnei1-13/+5
2017-10-15hle: Implement ConvertSessionToDomain, various cleanups.bunnei3-10/+28
2017-10-15hle: Add service stubs for apm and appletOE.bunnei1-1/+1
2017-10-15hle: Initial implementation of NX service framework and IPC.bunnei6-280/+168
2017-09-24HLE/SRV: Implemented RegisterService.Subv4-1/+33
Now system modules can do more than just crash immediately on startup.
2017-06-19ResultVal: Remove MoveFrom()Yuri Kunde Schlesner1-2/+2
Replace it with std::move(result_val).Unwrap(), or Foo().Unwrap() in case you already have an rvalue.
2017-06-11Service/sm: Convert srv: to use IPC helpersYuri Kunde Schlesner1-49/+56
2017-06-09Service/sm: Convert 'srv:' to ServiceFrameworkYuri Kunde Schlesner4-49/+72
2017-06-06Service: Remove unnecessary includes from service.hYuri Kunde Schlesner2-0/+4
This has a huge fallout in terms of needing to fix other files because all service implementations included that file.
2017-06-06Service: Make service registration part of the sm implementationYuri Kunde Schlesner3-14/+138
Also enhances the GetServiceHandle implementation to be more accurate.
2017-06-06Service/sm: Use an actual semaphore for the notification semaphoreYuri Kunde Schlesner1-8/+9
An Event was used way back then when we didn't have proper working semaphores. Our Semaphore implementation is good enough now.
2017-06-06Service: Move SRV interface to a new sm/ subdirectoryYuri Kunde Schlesner2-0/+213
This will contain the implementation of the sm (Service Manager) system module.