feat(libkernel): implement pthread_attr scope, inheritsched and stackaddr getters #3377
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3377"
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?
Imported from boykopovar/AnyPS5. Originally posted by pushkarreddyy on 2026-10-11T09:32:11Z.
What
Closes #3165.
Implements missing pthread attribute functions in
libkernel:pthread_attr_getinheritsched(NIDoLjPqUKhzes)pthread_attr_getscope(NIDe2G+cdEkOmU)pthread_attr_setscope(NIDxesmlSI-KCI)pthread_attr_getstackaddr(NIDDxmIMUQ-wXY)pthread_attr_setinheritschedagainst FreeBSD 11 libthr (acceptsPTHREAD_INHERIT_SCHED(4) andPTHREAD_EXPLICIT_SCHED(0), returningENOTSUP(45) otherwise)scePthreadCreate, reported throughscePthreadAttrGetandpthread_attr_get_npdocs/dev/TechnicalDebt.mdunder### Functionallibthr(thr_attr.c,thr_create.c)pthread_attr_getstackaddr.Tested
GuestPthreadAttr.cpp(CheckSchedulingAttributes(),CheckThreadScope(), and stackaddr tests) passing 100%.guest_pthread_attrpassed, 520/520 test suite passed).mainthat seven catalog titles move pastpthread_attr_getscope.python tools/check_conventions.pypassed with 0 findings.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-11T09:32:21Z.
Thank you for your interest in the project! We are sorry, but we cannot accept more PRs while we work through the existing backlog. This PR has been automatically closed and labeled "intake paused". This is not a judgment of the quality of your changes.
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-11T09:32:33Z.
Progress report (
e608d40→a5414e0)📈 System libraries: 85.47% (+0.01%, +3 implemented functions)
✅ 3 implemented
pthread_attr_getinheritsched_nid_postfixpthread_attr_getscope_nid_postfixpthread_attr_setscope_nid_postfixImported from boykopovar/AnyPS5. Originally posted by pushkarreddyy on 2026-10-11T09:57:18Z.
Thank you @screamm for auditing and cataloging the 13 titles in #3165, and special thanks to @blawesom for the thorough independent Linux verification (520/520 tests passing on CachyOS / GCC 16.2.1)!
This branch (
pushkarreddyy:feat/libkernel-pthread-attr-scope-inherit) is based directly on latestmain(3c3992c5c), strictly implements FreeBSD 11libthrsemantics (oLjPqUKhzes,e2G+cdEkOmU,xesmlSI-KCI), propagates contention scope acrossscePthreadCreate, includes unit tests inGuestPthreadAttr.cpp, and strictly passescheck_conventions.pywith 0 comments.Calling on @MarcZX100, @adriadam10, and @oneandonlydean to carry or reopen when convenient!
Imported from boykopovar/AnyPS5. Originally posted by babyhuey on 2026-10-11T10:41:55Z.
@pushkarreddyy
pthread_attr_getscopeis now the next stop for seven catalog titles onmain99c1c263(Linux, catalog builds withsce_module/libc.prxunwrapped as #2605 requires), each withapp.elf: symbol lookup error: app.elf: undefined symbol: e2G+cdEkOmU: XashPS5 (PPSA19111), ccleste (PPSA59322), RommPS (PPSA76677), ProsperoLight (PPSA99002), vkQuake (PPSA99010), Quake3e (PPSA99303) and PSBox Cloud Gaming (PPSA99810).Your head (
a5414e0e) merged ontomainearlier today withguest_pthread_attrpassing 5/5, and ccleste, RommPS and Quake3e then stopped atpthread_attr_getstackaddr(DxmIMUQ-wXY), which #1912 also had.If you'd like, I can open this as a carry that keeps your commit and authorship, rebased on current
main. I'll wait for your yes.Imported from boykopovar/AnyPS5. Originally posted by pushkarreddyy on 2026-10-11T11:03:14Z.
Yes, absolutely @babyhuey! Please go right ahead and open the carry PR. Thank you so much for testing all seven catalog titles on
mainand offering to carry!To ensure ccleste, RommPS, and Quake3e move completely through without immediately halting at their next stop, I have also implemented
pthread_attr_getstackaddr(DxmIMUQ-wXY) on this branch (84dbd745c). It returns(*attr)->stackAddress, includes full unit test coverage inGuestPthreadAttr.cpp, conforms to FreeBSD 11libthr, passescheck_conventions.py100%, and is documented inTechnicalDebt.md.Whenever you are ready, please open the carry PR with this updated branch. Thank you again!
Imported from boykopovar/AnyPS5. Originally posted by babyhuey on 2026-10-11T11:40:10Z.
@pushkarreddyy opened as #3494 with both of your commits (your authorship kept), rebased onto current
mainwithout conflicts. All seven titles get past their imports with it.Imported from boykopovar/AnyPS5. Originally posted by pushkarreddyy on 2026-10-11T11:49:39Z.
Thank you @babyhuey! Carried into #3494 with both commits and authorship preserved.
Pull request closed