IOB: Add macro to get the start of data

This commit is contained in:
Gregory Nutt 2014-06-07 15:40:51 -06:00
parent b8b2cc6f0e
commit 7b460bf1aa

View File

@ -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 */