Loading...
Searching...
No Matches
pktbuf_internal.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2014 Martine Lenders <mlenders@inf.fu-berlin.de>
3 * SPDX-FileCopyrightText: 2015 Freie Universität Berlin
4 * SPDX-License-Identifier: LGPL-2.1-only
5 */
6
7#pragma once
8
22
23#include <stdbool.h>
24#include <stdlib.h>
25
26#include "mutex.h"
27
28#ifdef __cplusplus
29extern "C" {
30#endif
31
40
52bool gnrc_pktbuf_contains(void *ptr);
53
63void gnrc_pktbuf_free_internal(void *data, size_t size);
64
65/* for testing */
66#ifdef TEST_SUITES
74
82#endif
83
84#ifdef __cplusplus
85}
86#endif
87
Mutex for thread synchronization.
bool gnrc_pktbuf_contains(void *ptr)
Check if the given pointer is indeed part of the packet buffer.
mutex_t gnrc_pktbuf_mutex
Mutex used to provide mutually exclusive access to packet buffer data structures.
bool gnrc_pktbuf_is_sane(void)
Checks if the implementation's internal invariants still uphold.
bool gnrc_pktbuf_is_empty(void)
Checks if packet buffer is empty.
void gnrc_pktbuf_free_internal(void *data, size_t size)
Release an internal buffer.
Mutex structure.
Definition mutex.h:36