[PATCH v2 0/7] membuff: Add tests and update to support a flag for empty/full

Tom Rini trini at konsulko.com
Fri Apr 4 19:34:25 CEST 2025


On Tue, 18 Mar 2025 16:20:41 +0100, Simon Glass wrote:

> The membuff implementation curently has no tests. It also assumes that
> head and tail can never correspond unless the buffer is empty.
> 
> This series provides a compile-time flag to support a 'full' flag. It
> also adds some tests of the main routines.
> 
> The data structure is also renamed to membuf which fits better with
> U-Boot.
> 
> [...]

Applied to u-boot/next, thanks!

[1/7] membuff: Rename functions to have membuf_ prefix
      commit: 4662e5286aa259e158f314157d0d8f2ad213a321
[2/7] membuff: Rename the files to membuf
      commit: 9ca1789ff099a364c6e16dcb6f6ad2e8677f32f1
[3/7] membuf: Rename struct
      commit: 68b0af2127dbd7b304f897f4796c6eb86fd74402
[4/7] membuf: Include stdbool
      commit: f48f1705c357605f05f5a47b84c1c89dc33bec35
[5/7] membuf: Correct implementation of membuf_dispose()
      commit: 44e763bd6624f23fe6d94340efb43c627b5ce4a7
[6/7] membuf: Add some tests
      commit: 142a3cb63c81602ae4f48266a190ebceb483e536
[7/7] membuf: Minor code-style improvements
      commit: da8694a7d2cc9fdfd67e8a039ba1e70bdd543d0b
-- 
Tom




More information about the U-Boot mailing list