IOB: Add macro to get the start of data
This commit is contained in:
parent
b8b2cc6f0e
commit
7b460bf1aa
@ -56,7 +56,8 @@
|
||||
|
||||
/* IOB helpers */
|
||||
|
||||
#define IOB_FREESPACE(n) (CONFIG_IOB_BUFSIZE - (n)->io_len - (n)->io_offset)
|
||||
#define IOB_DATA(p) (&(p)-io_data[(p)->io_offset])
|
||||
#define IOB_FREESPACE(p) (CONFIG_IOB_BUFSIZE - (p)->io_len - (p)->io_offset)
|
||||
|
||||
/* Queue helpers */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user