Page MenuHomeFreeBSD

sockbuf: provide sbunreserve_locked() which is a complement to sbreserve()
ClosedPublic

Authored by glebius on Mar 14 2025, 6:06 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, May 27, 11:24 PM
Unknown Object (File)
May 18 2026, 8:16 PM
Unknown Object (File)
May 15 2026, 11:43 PM
Unknown Object (File)
May 15 2026, 11:43 PM
Unknown Object (File)
May 15 2026, 11:43 PM
Unknown Object (File)
May 15 2026, 11:43 PM
Unknown Object (File)
May 15 2026, 11:42 PM
Unknown Object (File)
Apr 28 2026, 6:04 AM
Subscribers

Details

Summary

The sbreserve() works only on protocol-independent parts of the sockbuf,
but sbrelease() also clears the generic sockbuf mbuf chain. Calling the
latter to undo changes done by the former is not correct. The new
function is the right thing.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 62923
Build 59807: arc lint + arc unit