diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-06-24 11:53:19 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-06-24 11:53:19 -0600 |
commit | f3dedc6824c81f3b0eee8b618d02d5bcaebf8aa1 (patch) | |
tree | 75feaf208513a84be8ecf8b81f9f76f08dac8768 /nuttx/net/iob/iob_initialize.c | |
parent | 66449463c477bdda578554a8c3d8e6802905337f (diff) | |
download | nuttx-f3dedc6824c81f3b0eee8b618d02d5bcaebf8aa1.tar.gz nuttx-f3dedc6824c81f3b0eee8b618d02d5bcaebf8aa1.tar.bz2 nuttx-f3dedc6824c81f3b0eee8b618d02d5bcaebf8aa1.zip |
Add throttle support to the I/O buffer logic
Diffstat (limited to 'nuttx/net/iob/iob_initialize.c')
-rw-r--r-- | nuttx/net/iob/iob_initialize.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/nuttx/net/iob/iob_initialize.c b/nuttx/net/iob/iob_initialize.c index 319e75b8a..8971f8d63 100644 --- a/nuttx/net/iob/iob_initialize.c +++ b/nuttx/net/iob/iob_initialize.c @@ -39,7 +39,7 @@ #include <nuttx/config.h> -#if defined(CONFIG_DEBUG) && defined(CONFIG_NET_IOB_DEBUG) +#if defined(CONFIG_DEBUG) && defined(CONFIG_IOB_DEBUG) /* Force debug output (from this file only) */ # undef CONFIG_DEBUG_NET @@ -88,9 +88,12 @@ FAR struct iob_qentry_s *g_iob_freeqlist; /* Counting semaphores that tracks the number of free IOBs/qentries */ -sem_t g_iob_sem; +sem_t g_iob_sem; /* Counts free I/O buffers */ +#if CONFIG_IOB_THROTTLE > 0 +sem_t g_throttle_sem; /* Counts available I/O buffers when throttled */ +#endif #if CONFIG_IOB_NCHAINS > 0 -sem_t g_qentry_sem; +sem_t g_qentry_sem; /* Counts free I/O buffer queue containers */ #endif /**************************************************************************** |