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)
Sun, Sep 13, 12:38 PM
Unknown Object (File)
Sat, Sep 12, 5:10 PM
Unknown Object (File)
Thu, Sep 10, 7:32 PM
Unknown Object (File)
Thu, Sep 10, 3:39 AM
Unknown Object (File)
Tue, Sep 8, 9:55 AM
Unknown Object (File)
Mon, Sep 7, 12:07 AM
Unknown Object (File)
Sun, Sep 6, 10:06 PM
Unknown Object (File)
Sun, Sep 6, 12:02 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 Not Applicable
Unit
Tests Not Applicable

Event Timeline

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