diff options
Diffstat (limited to 'nuttx/net/iob/iob.h')
-rw-r--r-- | nuttx/net/iob/iob.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/nuttx/net/iob/iob.h b/nuttx/net/iob/iob.h index 3b5eaf9e4..49222bec4 100644 --- a/nuttx/net/iob/iob.h +++ b/nuttx/net/iob/iob.h @@ -99,6 +99,29 @@ extern sem_t g_qentry_sem; /* Counts free I/O buffer queue containers */ FAR struct iob_qentry_s *iob_alloc_qentry(void); /**************************************************************************** + * Name: iob_tryalloc_qentry + * + * Description: + * Try to allocate an I/O buffer chain container by taking the buffer at + * the head of the free list without waiting for the container to become + * free. This function is intended only for internal use by the IOB module. + * + ****************************************************************************/ + +FAR struct iob_qentry_s *iob_tryalloc_qentry(void); + +/**************************************************************************** + * Name: iob_tryalloc + * + * Description: + * Try to allocate an I/O buffer by taking the buffer at the head of the + * free list without waiting for a buffer to become free. + * + ****************************************************************************/ + +FAR struct iob_s *iob_tryalloc(bool throttled); + +/**************************************************************************** * Name: iob_free_qentry * * Description: |