20 lines
362 B
C
20 lines
362 B
C
//
|
|
// Created by rick on 30-01-21.
|
|
//
|
|
|
|
#ifndef NEW_KERNEL_RINGQUEUE_H
|
|
#define NEW_KERNEL_RINGQUEUE_H
|
|
|
|
#include <sys/types.h>
|
|
#include <stdbool.h>
|
|
|
|
void *create_buffer(int count, int object_size);
|
|
|
|
void free_buffer(void *buffer);
|
|
|
|
void ring_buffer_put(void *buffer, void *item);
|
|
|
|
bool ring_buffer_get(void *buffer, void *target);
|
|
|
|
#endif //NEW_KERNEL_RINGQUEUE_H
|