docs(libkernel): record sem_timedwait timeouts as measured on a PS5 #10137
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/10137"
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 orezraey on 2026-10-23T10:35:49Z.
What
The
sem_timedwaitdebt entry said the console's behaviour for null and invalid timeouts when a count is available was unverified. I measured it on a retail PS5 (firmware 13.60) with a homebrew probe, from a payload process. The source and console log are in this gist (psem).tv_nsec-1tv_nsec1000000000{0, 0}(past)tv_nsec-1 or 1000000000EINVAL{0, 0}or{-1, 0}ETIMEDOUTAnyPS5 already gives every one of these results, so only the debt entry changes. It now records the measurement in place of "unverified".
Tested
Windows 11, MinGW (winlibs).
tools/check_conventions.pypasses.tools/pr_overlap.pylists PRs that touch other lines ofdocs/dev/debt/libkernel.md; #9167 keeps this entry as context and does not change it.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)sem_timedwait), #9491 (merge order only: it edits the same lines; this PR is refreshed after it)Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-23T10:44:00Z.
Review: DISMISSED
The measurement is useful and the PR body is appropriately scoped: it records the exact count/timeout cases and leaves the implementation unchanged. The evidence in the linked probe log supports the table, including
ETIMEDOUT(errno 60) for the no-count past/negative-seconds cases and successful count consumption before timeout validation when a count is present. Conventions, diff-check, and current-main sync pass (3 ahead/29 behind; merge clean); hosted eligibility/intake/conventions/labels pass and product jobs are skipped for this documentation-only change. There is one merge blocker to coordinate: PR #10105 also edits this exactsem_timedwaitdebt entry, and a pairwise merge of the two current heads conflicts indocs/dev/debt/libkernel.md. Please coordinate a single combined wording/landing order with that author, refresh after the first change lands, and preserve both the title call-site evidence from #10105 and these console measurements. AddDepends onif one PR must land first under the repository rules; otherwise document the agreed order and rerun overlap/convention checks.