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.
Details
Details
- Reviewers
kevans glebius kib - Commits
- rS365761: Rename unp_pcb_lock2().
Diff Detail
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
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. |