Repository navigation
Wi-Fi late, part 2: configd holds en0 89 s with IOKit quiet; hosted 0061 (oneios-ubt-count) to sample configd and wifid; next boot's lines and ioslog searches - #10
Merged
Conversation
… 89 s after launchd with IOKit quiet); hosted 0061, oneios-ubt-count, to sample configd and wifid in a boot's first minutes; the next boot's lines and iOS log searches The phone (main c1223f8, kernel.kc 4b9a91ae, the reserved unit of #8): first naming by configd at +111 s after the driver's start (launchd + 89 s) with IOKit busy 0, IFF_UP by configd at +131 s, wifid's first scan at +201 s: as late as before. So in that boot InterfaceNamer did not wait for driverkitd; something else holds configd before it names en0. Read in configd's open source (plugin_support.c, ifnamer.c, prefsmon.c, main branch): the plugin thread dlopen()s the bundles that are not built in, then calls load() in its allow-list order, InterfaceNamer's first; its thread reads NetworkInterfaces.plist, opens IONetworkStack and names, while PreferencesMonitor's load() runs __SCNetworkConfigurationUpgrade; they share the SCPreferences locks. Which of these holds the phone's configd is not known yet. Hosted 0061 (osfmk/arm64/hosted/hosted_machine.c, under XNU_HOSTED like 0026): oneios-ubt-count=N stops 0026's reports after N (default 0: no end, as before); each report starts with "oneios-ubt: report K at +S s". For the next boot: oneios-ubt=configd,wifid oneios-ubt-at=20 oneios-ubt-every=10 oneios-ubt-count=18, and oneios-sysfail=configd; the threads' addresses go to oneios-tool sym. wifid's "sets 25 -> 102" is APPLE80211_IOC_HOST_AP_MODE refused with EOPNOTSUPP on purpose (kRefusedSets: the access point modes); wifid goes on (PC and phone). configd's IPConfiguration, not wifid, sets IFF_UP. wifid joins only by auto-join to a network of its known-networks store that the scan has: the searches that tell "none known in range" from a fault are in docs/hardware.md 3, "en0 late". Built: kernel HOSTED_OUT=fixwifi (1188 s, under other agents' load), prelink audit 0 failures (kernel.kc 84d3304c), kernel/prelink/stubs-check.py 666 good, 0 bad (the existing Python script: oneios-tool has no stub check). Not booted yet: the PC boot is in the box's qemu queue. Not on the phone. Docs: hardware.md 3 (the phone's result, who sets IFF_UP, the join rule, request 25, the next boot's boot arguments and lines, the ioslog searches), net/README.md (the reserved unit did not make Wi-Fi earlier), hosted README 0061, series, building.md 5 (oneios-ubt-count). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…amed en0 (logd's registration, then the plugin bundles' load with configd's server blocked) PC boot (qemu-aarch64, wifi=sim, kernel.kc 84d3304c with 0061, oneios-ubt=configd oneios-ubt-at=850 oneios-ubt-every=45 oneios-ubt-count=6, fresh Data store): six "oneios-ubt: report K at +S s" reports at +850 to +1075 s, then "oneios-ubt: 6 reports, the last (oneios-ubt-count)". configd was spawned about +625 s and named en0 at +1568 s. Named with oneios-tool sym (slide 0xbb54000): reports 1-2, the main thread in _os_state_add_handler -> __os_trace_init_slow -> _firehose_send_register -> mach_msg (waiting for logd); reports 3-6, the main thread in CFBundleLoadExecutableAndReturnError -> dyld dlopen_from -> notifyLoad -> libobjc map_images_nolock, mostly in an uninterruptible wait, while configd's MIG server thread waits in objc_lookUpImpOrForward for the runtime lock. That the phone's 89 s are the same two waits is a guess; the next boot's reports (now with logd sampled too: oneios-ubt=configd,wifid,logd) say. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…, 0062 in number order; each touches its own files) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 15, 2026
Closed
denis0001-dev
pushed a commit
to denis0001-dev/OneiOS-S25-Ultra
that referenced
this pull request
Nov 16, 2026
…ections, give_up_s and the state file (README first; the code follows) The owner's request of 2026-11-15: downloads on a phone's mobile network. This commit is the protocol only, so that the app (OneOS PR akshaynexus#10) can be written against it; the code and the tests come on this branch. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The phone's result for #8 (2026-11-13, main c1223f8)
The reserved unit did not make Wi-Fi earlier. On the phone:
IFF_UP20 s later.The PC boot shows the same steps in the same order, only slower. What holds configd before it names en0 is still unknown.
This PR
hosted_machine.c, underXNU_HOSTED): two additions to 0026's user backtraces.oneios-ubt-count=Nstops the reports after N (the default 0 keeps the old behaviour: no end).oneios-ubt: report K at +S s.xnuhost.conf:oneios-ubt=configd,wifid,logd oneios-ubt-at=20 oneios-ubt-every=10 oneios-ubt-count=18 oneios-sysfail=configd. Then runoneios-tool symon the addresses.docs/hardware.md3, "en0 late":IFF_UP: configd, not wifid.sets 25 -> 102: request 25 isAPPLE80211_IOC_HOST_AP_MODE, refused on purpose withEOPNOTSUPP(kRefusedSets). wifid goes on with its attach and scans after it.oneios-tool ioslog show ... --proc configd,--proc wifidand--proc airportdsearches, and how to copy the known-networks store out of the Data volume.net/README.md: the reserved unit's phone result. Hosted README: the 0061 section.series,building.md5.Tests
HOSTED_OUT=fixwifi).kernel.kc84d3304c).kernel/prelink/stubs-check.py: 666 good, 0 bad. I ran this existing Python script because oneios-tool has no stub check.oneios-ubt=configd oneios-ubt-at=850 oneios-ubt-every=45 oneios-ubt-count=6): six reports from +850 s to +1075 s, then6 reports, the last. Named withoneios-tool sym:_firehose_send_register, waiting for logd.CFBundleLoadExecutable-> dylddlopen-> objcmap_images_nolock, mostly in an uninterruptible wait). While that runs, configd's MIG server thread waits for the objc runtime lock.logdsampled too, will say.🤖 Generated with Claude Code