@@ -1437,8 +1437,7 @@ struct net_buf * __must_check net_buf_alloc_with_data(struct net_buf_pool *pool,
1437
1437
/**
1438
1438
* @brief Get a buffer from a FIFO.
1439
1439
*
1440
- * This function is NOT thread-safe if the buffers in the FIFO contain
1441
- * fragments.
1440
+ * @deprecated Use @a k_fifo_get() instead.
1442
1441
*
1443
1442
* @param fifo Which FIFO to take the buffer from.
1444
1443
* @param timeout Affects the action taken should the FIFO be empty.
@@ -1448,14 +1447,14 @@ struct net_buf * __must_check net_buf_alloc_with_data(struct net_buf_pool *pool,
1448
1447
* @return New buffer or NULL if the FIFO is empty.
1449
1448
*/
1450
1449
#if defined(CONFIG_NET_BUF_LOG )
1451
- struct net_buf * __must_check net_buf_get_debug (struct k_fifo * fifo ,
1452
- k_timeout_t timeout ,
1453
- const char * func , int line );
1450
+ __deprecated struct net_buf * __must_check net_buf_get_debug (struct k_fifo * fifo ,
1451
+ k_timeout_t timeout ,
1452
+ const char * func , int line );
1454
1453
#define net_buf_get (_fifo , _timeout ) \
1455
1454
net_buf_get_debug(_fifo, _timeout, __func__, __LINE__)
1456
1455
#else
1457
- struct net_buf * __must_check net_buf_get (struct k_fifo * fifo ,
1458
- k_timeout_t timeout );
1456
+ __deprecated struct net_buf * __must_check net_buf_get (struct k_fifo * fifo ,
1457
+ k_timeout_t timeout );
1459
1458
#endif
1460
1459
1461
1460
/**
@@ -1503,9 +1502,6 @@ void net_buf_simple_reserve(struct net_buf_simple *buf, size_t reserve);
1503
1502
/**
1504
1503
* @brief Put a buffer into a list
1505
1504
*
1506
- * If the buffer contains follow-up fragments this function will take care of
1507
- * inserting them as well into the list.
1508
- *
1509
1505
* @param list Which list to append the buffer to.
1510
1506
* @param buf Buffer.
1511
1507
*/
@@ -1514,9 +1510,6 @@ void net_buf_slist_put(sys_slist_t *list, struct net_buf *buf);
1514
1510
/**
1515
1511
* @brief Get a buffer from a list.
1516
1512
*
1517
- * If the buffer had any fragments, these will automatically be recovered from
1518
- * the list as well and be placed to the buffer's fragment list.
1519
- *
1520
1513
* @param list Which list to take the buffer from.
1521
1514
*
1522
1515
* @return New buffer or NULL if the FIFO is empty.
@@ -1526,13 +1519,12 @@ struct net_buf * __must_check net_buf_slist_get(sys_slist_t *list);
1526
1519
/**
1527
1520
* @brief Put a buffer to the end of a FIFO.
1528
1521
*
1529
- * If the buffer contains follow-up fragments this function will take care of
1530
- * inserting them as well into the FIFO.
1522
+ * @deprecated Use @a k_fifo_put() instead.
1531
1523
*
1532
1524
* @param fifo Which FIFO to put the buffer to.
1533
1525
* @param buf Buffer.
1534
1526
*/
1535
- void net_buf_put (struct k_fifo * fifo , struct net_buf * buf );
1527
+ __deprecated void net_buf_put (struct k_fifo * fifo , struct net_buf * buf );
1536
1528
1537
1529
/**
1538
1530
* @brief Decrements the reference count of a buffer.
0 commit comments