Loading...
Searching...
No Matches
pktbuf_internal.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2014 Martine Lenders <mlenders@inf.fu-berlin.de>
3 * 2015 Freie Universität Berlin
4 *
5 * This file is subject to the terms and conditions of the GNU Lesser
6 * General Public License v2.1. See the file LICENSE in the top level
7 * directory for more details.
8 */
9
23#ifndef PKTBUF_INTERNAL_H
24#define PKTBUF_INTERNAL_H
25
26#include <stdbool.h>
27#include <stdlib.h>
28
29#include "mutex.h"
30
31#ifdef __cplusplus
32extern "C" {
33#endif
34
43
55bool gnrc_pktbuf_contains(void *ptr);
56
66void gnrc_pktbuf_free_internal(void *data, size_t size);
67
68/* for testing */
69#ifdef TEST_SUITES
77
85#endif
86
87#ifdef __cplusplus
88}
89#endif
90
91#endif /* PKTBUF_INTERNAL_H */
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:146