| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Fixes #3
|
| |
|
|
|
|
|
| |
fixes memleaks in du_buff and du_buff_test
fixes bug in copy operation
|
|
|
|
| |
du_buff.c: LOG_WARN changed to LOG_ERR
|
| |
|
|
|
|
| |
PCI can now occupy at most one block
|
|
|
|
|
| |
fixed a signed-unsigned mismatch in du_buff.c
fixed an uninitialised variable in irm
|
|
|
|
|
|
|
|
|
|
| |
tests/du_buff.c: tests the du_buff_t structure by creating different
size du_buff_t's and filling it with different size
sdu's at different locations in the du_buff_t
tests/CMakefile.txt: added du_buff test
lib/du_buff.c: fixed unsafe #define adding brackets
|
|
|
|
|
| |
du_buff.c: default du_buff size is now 64KB.
some formatting fixes (missing spaces around operators).
|
|
|
|
| |
du_buff.c: memory leak fixes
|
|\
| |
| |
| | |
workflow: Update guidelines on use of pointers
|
| |
| |
| |
| | |
lib/du_buff contained casted malloc's.
|
| | |
|
|/
|
|
|
| |
du_buff.[c/h]: alloc_head and alloc_tail now return a pointer to the
start of the PCI for direct read/write access.
|
|
|
|
| |
DU_BUFF_BLOCKIZE -> DU_BUFF_BLOCKSIZE
|
|
|
|
|
| |
du_buff.c: this fixes a lot of bugs probably. destruction of du_buff
worked under all tested circumstances
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
du_buff.c : Will now allocate memory only upon init, not upon create.
User can add compiler flag DU_BUFF_BLOCKSIZE to set the
size of a du_buff memory block. If the size for the
du_buff is larger than DU_BUFF_BLOCKSIZE, the du_buff will
be structured as follows:
HEAD -> DATA_BLOCK -> ... -> DATA_BLOCK -> TAIL
HEAD and TAIL are contiguous and may be larger than
DU_BUFF_BLOCKSIZE if required.
|
|
|
|
|
| |
du_buff.c : removed unnecessary variable for return values
removed unnecessary functions
|
|
|
|
| |
forgot spaces before/after +
|
|
|
|
| |
du_buff.c size_t now prints correctly as %llu
|
|
|
|
|
| |
The initial commit was untested and caused some segmentation faults.
This version should be bugfree (no promises).
|
|
|
|
| |
du_buff.c is now compliant with more stringent compiler flags
|
|
|
|
| |
Moved struct buffer and struct du_buff definitions to the source file.
|
|
|
|
|
|
| |
du_buff.h : moved struct buffer to source
du_buff.c : fixed formatting
LOG_DBGF used
|
|
Compiles but untested. Expect bugs.
|