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)
Thu, Mar 20, 3:48 PM
Unknown Object (File)
Wed, Mar 19, 12:20 PM
Unknown Object (File)
Sat, Mar 15, 1:36 AM
Unknown Object (File)
Jan 27 2025, 1:28 AM
Unknown Object (File)
Jan 24 2025, 6:30 PM
Unknown Object (File)
Jan 23 2025, 6:00 AM
Unknown Object (File)
Jan 21 2025, 9:41 PM
Unknown Object (File)
Jan 9 2025, 10:50 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

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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 ↗(On Diff #76542)

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 ↗(On Diff #76542)

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.