|
|
|
@ -1423,29 +1423,6 @@ struct net_buf * __must_check net_buf_alloc_with_data(struct net_buf_pool *pool,
@@ -1423,29 +1423,6 @@ struct net_buf * __must_check net_buf_alloc_with_data(struct net_buf_pool *pool,
|
|
|
|
|
k_timeout_t timeout); |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Get a buffer from a FIFO. |
|
|
|
|
* |
|
|
|
|
* @deprecated Use @a k_fifo_get() instead. |
|
|
|
|
* |
|
|
|
|
* @param fifo Which FIFO to take the buffer from. |
|
|
|
|
* @param timeout Affects the action taken should the FIFO be empty. |
|
|
|
|
* If K_NO_WAIT, then return immediately. If K_FOREVER, then wait as |
|
|
|
|
* long as necessary. Otherwise, wait until the specified timeout. |
|
|
|
|
* |
|
|
|
|
* @return New buffer or NULL if the FIFO is empty. |
|
|
|
|
*/ |
|
|
|
|
#if defined(CONFIG_NET_BUF_LOG) |
|
|
|
|
__deprecated struct net_buf * __must_check net_buf_get_debug(struct k_fifo *fifo, |
|
|
|
|
k_timeout_t timeout, |
|
|
|
|
const char *func, int line); |
|
|
|
|
#define net_buf_get(_fifo, _timeout) \ |
|
|
|
|
net_buf_get_debug(_fifo, _timeout, __func__, __LINE__) |
|
|
|
|
#else |
|
|
|
|
__deprecated struct net_buf * __must_check net_buf_get(struct k_fifo *fifo, |
|
|
|
|
k_timeout_t timeout); |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Destroy buffer from custom destroy callback |
|
|
|
|
* |
|
|
|
@ -1505,16 +1482,6 @@ void net_buf_slist_put(sys_slist_t *list, struct net_buf *buf);
@@ -1505,16 +1482,6 @@ void net_buf_slist_put(sys_slist_t *list, struct net_buf *buf);
|
|
|
|
|
*/ |
|
|
|
|
struct net_buf * __must_check net_buf_slist_get(sys_slist_t *list); |
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Put a buffer to the end of a FIFO. |
|
|
|
|
* |
|
|
|
|
* @deprecated Use @a k_fifo_put() instead. |
|
|
|
|
* |
|
|
|
|
* @param fifo Which FIFO to put the buffer to. |
|
|
|
|
* @param buf Buffer. |
|
|
|
|
*/ |
|
|
|
|
__deprecated void net_buf_put(struct k_fifo *fifo, struct net_buf *buf); |
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Decrements the reference count of a buffer. |
|
|
|
|
* |
|
|
|
|