blob: b81773c3a5711f04583c9e3346df7e8800203d70 [file] [log] [blame]
/*
* Copyright (c) 2024, Tenstorrent AI ULC
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <stddef.h>
#include <zephyr/kernel.h>
#include <zephyr/posix/sys/mman.h>
int mlock(const void *addr, size_t len)
{
k_mem_pin(addr, len);
return 0;
}
int munlock(const void *addr, size_t len)
{
k_mem_unpin(addr, len);
return 0;
}