diff options
Diffstat (limited to 'nuttx/net/iob/iob.h')
-rw-r--r-- | nuttx/net/iob/iob.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/nuttx/net/iob/iob.h b/nuttx/net/iob/iob.h index 03ea6d14d..3b5eaf9e4 100644 --- a/nuttx/net/iob/iob.h +++ b/nuttx/net/iob/iob.h @@ -64,12 +64,19 @@ extern FAR struct iob_s *g_iob_freelist; /* A list of all free, unallocated I/O buffer queue containers */ +#if CONFIG_IOB_NCHAINS > 0 extern FAR struct iob_qentry_s *g_iob_freeqlist; +#endif /* Counting semaphores that tracks the number of free IOBs/qentries */ -extern sem_t g_iob_sem; -extern sem_t g_qentry_sem; +extern sem_t g_iob_sem; /* Counts free I/O buffers */ +#if CONFIG_IOB_THROTTLE > 0 +extern sem_t g_throttle_sem; /* Counts available I/O buffers when throttled */ +#endif +#if CONFIG_IOB_NCHAINS > 0 +extern sem_t g_qentry_sem; /* Counts free I/O buffer queue containers */ +#endif /**************************************************************************** * Public Data |