Page MenuHomeFreeBSD

[unix(4) cleanup 3/8] Rename unp_pcb_lock2().
ClosedPublic

Authored by markj on Sep 2 2020, 4:55 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, May 25, 4:40 AM
Unknown Object (File)
Fri, May 24, 4:10 PM
Unknown Object (File)
Thu, May 23, 11:05 PM
Unknown Object (File)
Apr 25 2024, 10:19 AM
Unknown Object (File)
Apr 17 2024, 4:50 AM
Unknown Object (File)
Apr 16 2024, 1:22 AM
Unknown Object (File)
Apr 13 2024, 4:23 AM
Unknown Object (File)
Apr 10 2024, 8:14 PM
Subscribers

Details

Summary

I think unp_pcb_lock_pair() is a better name. Also make it handle the
case where the two sockets are the same instead of forcing callers to do
it. No functional change intended.

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 33328
Build 30639: arc lint + arc unit

Event Timeline

markj requested review of this revision.Sep 2 2020, 4:55 PM
markj created this revision.
kevans added inline comments.
sys/kern/uipc_usrreq.c
745

Might not be a bad idea to (perhaps later) introduce a unp_pcb_unlock_pair for these cases, if for nothing but the symmetry of lock_pair/unlock_pair to make it easier to verify correctness.

sys/kern/uipc_usrreq.c
745

Yes, I think it's a good idea.

Add unp_pcb_unlock_pair().

This revision is now accepted and ready to land.Sep 2 2020, 6:15 PM
This revision was automatically updated to reflect the committed changes.