Page MenuHomeFreeBSD

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

Authored by inquire_JohnEricson.me on Sat, Jul 25, 8:25 PM.
Tags
None
Referenced Files
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
Unknown Object (File)
Tue, Aug 11, 5:09 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.Tue, Aug 4, 9:14 PM