commit | 35d4335eda4c41bc5c658c8f1d36190f0e7e625a | [log] [tgz] |
---|---|---|
author | Brandon Kim <brandonkim@google.com> | Thu Jun 16 11:13:36 2022 -0700 |
committer | Brandon Kim <brandonkim@google.com> | Thu Jun 16 22:15:23 2022 -0700 |
tree | eebc4cc1f256394d6072934902b45ec082dbef4b | |
parent | 26660e9b26c0a9f54a80806244ab20d23e41f532 [diff] |
buffer: bugfix (v2) consolidate the offset and readptr - It didn't make sense to make the user keep count of the different types of read pointers, instead do the relative calculation at the lowest level (wraparoundRead) - Added further tests to prove out that readPtr is being updated properly in wraparoundRead) - Fixed wraparoundRead, as it was relying on the dataInterface->read to read until the "end". The "end" was fixed in the bugfix #1 to be the end of the queue instead of the mmaped buffer. - took out addtionalBoundaryCheck from wraparoundRead, as it was no longer needed Tested: Unit tested Signed-off-by: Brandon Kim <brandonkim@google.com> Change-Id: I101360223597d197362dc1dbe4a27601da09933f
This daemon will follow the design doc: https://gerrit.openbmc-project.xyz/c/openbmc/docs/+/52109
More detailed implementation details will also be placed here in the future