opuntiaOS - an operating system targeting x86 and ARMv7
at master 577 B view raw
1/* 2 * Copyright (C) 2020-2022 The opuntiaOS Project Authors. 3 * + Contributed by Nikita Melekhin <nimelehin@gmail.com> 4 * 5 * Use of this source code is governed by a BSD-style license that can be 6 * found in the LICENSE file. 7 */ 8 9#ifndef _KERNEL_IO_SHARED_BUFFER_SHARED_BUFFER_H 10#define _KERNEL_IO_SHARED_BUFFER_SHARED_BUFFER_H 11 12#include <libkern/types.h> 13 14int shared_buffer_init(); 15int shared_buffer_create(uint8_t** buffer, size_t size); 16int shared_buffer_get(int id, uint8_t** buffer); 17int shared_buffer_free(int id); 18 19#endif /* _KERNEL_IO_SHARED_BUFFER_SHARED_BUFFER_H */