1/* 2 * Copyright 2018, Data61 3 * Commonwealth Scientific and Industrial Research Organisation (CSIRO) 4 * ABN 41 687 119 230. 5 * 6 * This software may be distributed and modified according to the terms of 7 * the BSD 2-Clause license. Note that NO WARRANTY is provided. 8 * See "LICENSE_BSD2.txt" for details. 9 * 10 * @TAG(DATA61_BSD) 11 */ 12 13#pragma once 14 15#include <platsupport/sync/sync.h> 16 17/* Initialises a ps_mutex_ops_t interface that uses camkes/alloc.h to allocate mutexes from a 18 * camkes seL4Notification pool. The maximum number of mutexes must be defined at build time. 19 * If a mutex is freed, it can be allocated again. 20 */ 21int init_camkes_mutex_ops(ps_mutex_ops_t *mutex_ops); 22 23/* Initialises the ps_mutex_ops_t but will call malloc internally to do this. */ 24int init_camkes_mutex_ops_heap(ps_mutex_ops_t **mutex_ops); 25 26