/* * Copyright (c) 2024, Tenstorrent AI ULC * * SPDX-License-Identifier: Apache-2.0 */ #include #include #include 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; }