feat(libSceUlt): add underscore mutex and queue create exports #3760

Merged
13hourstilliland merged 1 commit from upstream-pr/3760 into main 2026-10-11 21:58:47 +00:00
13hourstilliland commented 2026-10-11 16:31:40 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by 13hourstilliland on 2026-10-11T16:31:40Z.


What

Adds _sceUltMutexOptParamInitialize (NID 1+8t9aHLiz8), _sceUltMutexCreate (mmt8Sa6tL6c), _sceUltQueueDataResourcePoolCreate (TFHm6-N6vks) and _sceUltQueueCreate (9Y5keOvb6ok). Each forwards to the export without the underscore, as _sceUltWaitingQueueResourcePoolCreate, _sceUltSemaphoreCreate and the _sceUltUlthread* exports already do. The NIDs were confirmed with tools/nid_names.py. KytyPS5 binds the same NIDs to the Ult functions. The existing TechnicalDebt line for the underscore Ult exports now lists them. This replaces the Ult part of #3387; the rest of that PR is already in main or left out.

Tested

Linux (GCC 14.2): guest_ult_thread_underscoredcreate now initializes and creates a mutex through the new exports, then locks and unlocks it. It also creates a data pool and a queue, and pushes and pops a value. The test fails to link on current main and passes with this change. All 11 guest_ult tests pass, and check_conventions.py passes. Not tested with a title.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none (merges cleanly with #3747)
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4820574847 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3760). Originally posted by [13hourstilliland](https://github.com/13hourstilliland) on 2026-10-11T16:31:40Z. --- ### What Adds `_sceUltMutexOptParamInitialize` (NID `1+8t9aHLiz8`), `_sceUltMutexCreate` (`mmt8Sa6tL6c`), `_sceUltQueueDataResourcePoolCreate` (`TFHm6-N6vks`) and `_sceUltQueueCreate` (`9Y5keOvb6ok`). Each forwards to the export without the underscore, as `_sceUltWaitingQueueResourcePoolCreate`, `_sceUltSemaphoreCreate` and the `_sceUltUlthread*` exports already do. The NIDs were confirmed with `tools/nid_names.py`. [KytyPS5](https://github.com/KytyPS5/KytyPS5/blob/307fdcf7ad5d9d15b5966288fcc598ac9dbca188/src/libs/libUlt.cpp#L721-L726) binds the same NIDs to the Ult functions. The existing TechnicalDebt line for the underscore Ult exports now lists them. This replaces the Ult part of #3387; the rest of that PR is already in `main` or left out. ### Tested Linux (GCC 14.2): `guest_ult_thread_underscoredcreate` now initializes and creates a mutex through the new exports, then locks and unlocks it. It also creates a data pool and a queue, and pushes and pops a value. The test fails to link on current `main` and passes with this change. All 11 `guest_ult` tests pass, and `check_conventions.py` passes. Not tested with a title. ### Checklist - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed in [TechnicalDebt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/TechnicalDebt.md#silent-stubs) - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none (merges cleanly with #3747) - [x] AI-assisted: yes
github-actions[bot] commented 2026-10-11 16:32:03 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-11T16:32:03Z.


Progress report (a11c8f7 → 54b9b93)

📈 System libraries: 85.83% (+0.02%, +4 implemented functions)

✅ 4 implemented
Library Name
libSceUlt _sceUltMutexCreate
libSceUlt _sceUltMutexOptParamInitialize
libSceUlt _sceUltQueueCreate
libSceUlt _sceUltQueueDataResourcePoolCreate
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6111188216 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3760#issuecomment-6111188216). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-11T16:32:03Z. --- <!-- progress-report --> ### Progress report (a11c8f7 → 54b9b93) 📈 **System libraries**: 85.83% (+0.02%, +4 implemented functions) <details> <summary>✅ 4 implemented</summary> | Library | Name | | - | - | | libSceUlt | `_sceUltMutexCreate` | | libSceUlt | `_sceUltMutexOptParamInitialize` | | libSceUlt | `_sceUltQueueCreate` | | libSceUlt | `_sceUltQueueDataResourcePoolCreate` | </details>
github-actions[bot] commented 2026-10-11 17:29:31 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-11T17:29:31Z.


Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.

Pull request Conflicting files (lines on main) Same exports Same new files
#2902 docs/dev/TechnicalDebt.md L56-57
#3764 docs/dev/TechnicalDebt.md L57
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6111717059 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3760#issuecomment-6111717059). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-11T17:29:31Z. --- <!-- pr-overlap --> Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in **Depends on**. | Pull request | Conflicting files (lines on `main`) | Same exports | Same new files | |---|---|---|---| | #2902 | `docs/dev/TechnicalDebt.md` [L56-57](https://github.com/boykopovar/AnyPS5/blob/1be2ca2028f1caf4640a765941bfca2fae7d53f2/docs/dev/TechnicalDebt.md#L56-L57) | | | | #3764 | `docs/dev/TechnicalDebt.md` [L57](https://github.com/boykopovar/AnyPS5/blob/1be2ca2028f1caf4640a765941bfca2fae7d53f2/docs/dev/TechnicalDebt.md#L57) | | |
adriadam10 commented 2026-10-11 21:58:41 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-11T21:58:41Z.


Checked the four forwarders against their targets (same signatures), the NIDs with tools/nid_names.py and KytyPS5 libUlt.cpp:721-726, and guest_ult_thread_underscoredcreate: it fails to link without the change and passes with it; the 30 libSceUlt/libs tests pass on the PR merged onto main. TechnicalDebt line updated in the right section. Merging.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6114263442 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3760#issuecomment-6114263442). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-11T21:58:41Z. --- Checked the four forwarders against their targets (same signatures), the NIDs with `tools/nid_names.py` and KytyPS5 `libUlt.cpp:721-726`, and `guest_ult_thread_underscoredcreate`: it fails to link without the change and passes with it; the 30 libSceUlt/libs tests pass on the PR merged onto main. TechnicalDebt line updated in the right section. Merging.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!3760
No description provided.