pub unsafe extern "C" fn gnrc_pktbuf_release_error(
pkt: *mut gnrc_pktsnip_t,
err: u32,
)
Expand description
@brief Decreases gnrc_pktsnip_t::users of @p pkt atomically and removes it if it reaches 0 and reports a possible error through an error code, if @ref net_gnrc_neterr is included.
@pre All snips of @p pkt must be in the packet buffer.
@param[in] pkt A packet. @param[in] err An error code.