kernel: export the Posix solosched attribute setter #2578
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
GPU
GUI
help wanted
question
Shaders
Video
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/KytyPS5--KytyPS5!2578
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2578"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@lordra9-svg on GitHub · 2026-11-27 01:50 UTC · original
lordra9-svg:fix/kernel-posix-solosched→main· +18 −0 · 4 files · 1 commits · openReturnal imports
pthread_attr_setsolosched_npfrom Posix under NID2+pVfgiEd7Aand logged an unresolved import. The libkernel export(
Dk6FC-TI+7Q) and the attribute storage already existed, but the Posixentry point was never registered.
Add the Posix wrapper and register both names, so the attribute can be set
through the Posix API and read back with
PthreadAttrGetsolosched.Refs #2373.
Tests
kernel_thread_tests:KernelThread.PosixSoloschedAttributeRoundTripspasses on
61db2f88.Files:
src/kernel/pthread.cpp,src/kernel/pthread.h,src/libs/libKernel.cpp,tests/KernelThreadTests.cpp.AI assistance
Drafted with AI assistance; I reviewed the change and ran the test above.
@coderabbitai[bot] on GitHub · 2026-11-27 01:55 UTC · original
No actionable comments were generated in the recent review.
Walkthrough
The change adds and registers the POSIX
pthread_attr_setsolosched_npsetter. The wrapper forwards the thread attribute andsoloschedvalue toPthreadAttrSetsoloschedand converts the result with POSIX error handling. A test sets the value to1, checks that the kernel getter returns1, and verifies the API return values.Suggested reviewers:
nmzik,nawid3333Change: Feature
Merge Risk:
Minimal · up to
43567This adds the missing POSIX setter for the solo-scheduling thread attribute so guest code that imports it can resolve the symbol. The change is small and additive, and no merge-blocking risk was found.
Pre-merge checks:
4
Full details: Title check
Explanation
The title names the main change: exporting the Posix solosched attribute setter. The changeset adds the pthread_attr_setsolosched_np wrapper, its header declaration, and its NID registration in libKernel.cpp. The title is specific and matches the primary change, though it does not mention the added test.
Full details: Description check
Explanation
The description states the purpose: Returnal imports pthread_attr_setsolosched_np from Posix under NID 2+pVfgiEd7A, which was unresolved. It explains that the Posix wrapper and both name registrations are added. It also lists the touched files and the test that was run. This matches the changeset in src/kernel/pthread.cpp, pthread.h, libKernel.cpp, and the test file.
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Share
d2d0142a-1b58-45b8-9d82-28ea9036a7adReviewing files that changed from the base of the PR and between
61db2f8874and435678bbf3.src/kernel/pthread.cppsrc/kernel/pthread.hsrc/libs/libKernel.cpptests/KernelThreadTests.cppIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.