Page MenuHomeFreeBSD

unix: factor `unp_connectat_peer()` out of `unp_connectat()`
ClosedPublic

Authored by inquire_JohnEricson.me on Jul 25 2026, 8:25 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Aug 26, 4:24 AM
Unknown Object (File)
Tue, Aug 18, 3:57 PM
Unknown Object (File)
Tue, Aug 18, 3:28 AM
Unknown Object (File)
Mon, Aug 17, 9:29 PM
Unknown Object (File)
Mon, Aug 17, 2:42 AM
Unknown Object (File)
Mon, Aug 17, 12:29 AM
Unknown Object (File)
Sun, Aug 16, 8:44 PM
Unknown Object (File)
Thu, Aug 13, 10:31 AM
Subscribers

Details

Summary

Move the "resolve a connectat(2) target to a referenced peer socket"
half of unp_connectat() -- the namei() lookup and unp_vnode_peer()
call -- into a helper, leaving unp_connectat() with the connection state
machine plus a single unp_connect_peer().

This is where the next change grows the ways a peer can be named; keeping
it a helper up front keeps that change focused on the new resolution
logic.

No functional change intended.

Signed-off-by: John Ericson <John.Ericson@Obsidian.Systems>
Assisted-by: Claude Code (Claude Opus 4.8 and Fable 5)

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
No Test Coverage
Build Status
Buildable 75135
Build 72018: arc lint + arc unit

Event Timeline

This revision is now accepted and ready to land.Tue, Aug 4, 9:14 PM