Squash commits for public release

This commit is contained in:
2025-02-12 09:54:05 -05:00
commit 7118adc514
1108 changed files with 80873 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
#include <x/shared_buffer.h>
#include <sysdep.h>
int shared_buffer_create(uint8_t** buffer, size_t size)
{
int res = DO_SYSCALL_2(SYS_SHBUF_CREATE, buffer, size);
RETURN_WITH_ERRNO(res, res, res);
}
int shared_buffer_get(int id, uint8_t** buffer)
{
int res = DO_SYSCALL_2(SYS_SHBUF_GET, id, buffer);
RETURN_WITH_ERRNO(res, res, res);
}
int shared_buffer_free(int id)
{
int res = DO_SYSCALL_1(SYS_SHBUF_FREE, id);
RETURN_WITH_ERRNO(res, res, res);
}