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)
Mon, Nov 17, 11:33 PM
Unknown Object (File)
Fri, Nov 14, 11:55 PM
Unknown Object (File)
Sun, Nov 9, 11:27 PM
Unknown Object (File)
Oct 31 2025, 12:40 AM
Unknown Object (File)
Oct 29 2025, 11:18 PM
Unknown Object (File)
Oct 24 2025, 1:53 AM
Unknown Object (File)
Oct 16 2025, 4:40 PM
Unknown Object (File)
Oct 13 2025, 3:51 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