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)
Thu, Aug 20, 4:32 PM
Unknown Object (File)
Fri, Aug 14, 9:40 PM
Unknown Object (File)
Fri, Aug 14, 3:24 PM
Unknown Object (File)
Wed, Aug 12, 7:45 PM
Unknown Object (File)
Wed, Aug 12, 6:13 PM
Unknown Object (File)
Wed, Aug 12, 4:42 PM
Unknown Object (File)
Wed, Aug 12, 4:42 PM
Unknown Object (File)
Wed, Aug 12, 4:41 PM
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 Not Applicable
Unit
Tests Not Applicable