npub1dv…7ttxk on Nostr: The code is here: ...
The code is here:
https://codeberg.org/libobscura/libv4l-stream/src/branch/master/src/io/dmabuf/arena.rs#L415
This doesn't cover a lot, and won't test kernel glue code at all - and glue is where most bugs are in my experience.
In the end, I decided to shove the complexity somewhere else, but at least the buffer manager can be tested somewhat.
https://codeberg.org/libobscura/libv4l-stream/src/branch/master/src/io/dmabuf/arena.rs#L415
This doesn't cover a lot, and won't test kernel glue code at all - and glue is where most bugs are in my experience.
In the end, I decided to shove the complexity somewhere else, but at least the buffer manager can be tested somewhat.