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, Oct 13, 3:51 PM
Unknown Object (File)
Sun, Oct 12, 1:43 AM
Unknown Object (File)
Sat, Oct 11, 12:37 AM
Unknown Object (File)
Wed, Oct 8, 2:37 PM
Unknown Object (File)
Fri, Oct 3, 5:03 PM
Unknown Object (File)
Mon, Sep 22, 2:34 PM
Unknown Object (File)
Sep 15 2025, 1:29 PM
Unknown Object (File)
Sep 14 2025, 5:32 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