12 lines
260 B
C
12 lines
260 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
#ifndef _BUDDY_H_
|
|
#define _BUDDY_H_
|
|
|
|
#include <kernel/common.h>
|
|
|
|
ssize_t buddy_order(size_t len);
|
|
void *buddy_alloc(size_t order);
|
|
void buddy_free(void *ptr, size_t order);
|
|
void buddy_init();
|
|
|
|
#endif /* _BUDDY_H_ */
|