Page MenuHomeFreeBSD

unix: factor `unp_connectat_peer()` out of `unp_connectat()`
Needs ReviewPublic

Authored by inquire_JohnEricson.me on Sat, Jul 25, 8:25 PM.
Tags
None
Referenced Files
F164534624: D58462.diff
Sat, Aug 1, 10:05 PM
F164493714: D58462.id.diff
Sat, Aug 1, 9:39 AM
Unknown Object (File)
Fri, Jul 31, 10:03 PM
Unknown Object (File)
Wed, Jul 29, 10:17 AM
Unknown Object (File)
Wed, Jul 29, 8:07 AM
Subscribers

Details

Reviewers
markj
kib
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