mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-01 14:12:50 +00:00
Add a net_buf_id() API which translates a buffer into a zero-based index, based on its placement in the buffer pool. This can be useful if you want to associate an external array of meta-data contexts with the buffers of a pool. The added value of this API is slightly limited at the moment, since the net_buf API allows custom user-data sizes for each pool (i.e. the user data can be used instead of a separately allocated meta-data array). However, there's some refactoring coming soon which will unify all net_buf structs to have the same fixed (and typically small) amount of user data. In such cases it may be desirable to have external user data in order not to inflate all buffers in the system because of a single pool needing the extra memory. Signed-off-by: Johan Hedberg <johan.hedberg@intel.com> |
||
---|---|---|
.. | ||
arp.h | ||
bt.h | ||
buf.h | ||
coap_link_format.h | ||
coap.h | ||
dhcpv4.h | ||
dns_resolve.h | ||
ethernet.h | ||
hostname.h | ||
http_parser_state.h | ||
http_parser_url.h | ||
http_parser.h | ||
http.h | ||
ieee802154_radio.h | ||
ieee802154.h | ||
lwm2m.h | ||
mii.h | ||
mqtt_types.h | ||
mqtt.h | ||
net_app.h | ||
net_context.h | ||
net_core.h | ||
net_event.h | ||
net_if.h | ||
net_ip.h | ||
net_l2.h | ||
net_linkaddr.h | ||
net_mgmt.h | ||
net_offload.h | ||
net_pkt.h | ||
net_stats.h | ||
sntp.h | ||
socket.h | ||
trickle.h | ||
udp.h | ||
zoap_link_format.h | ||
zoap.h |