1/*
2 * Copyright 2016, 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(D61_BSD)
11 */
12
13/*! @file
14    @brief Dispatcher for the procserv syscalls. */
15
16#ifndef _REFOS_PROCESS_SERVER_DISPATCHER_PROCSERV_SYSCALL_H_
17#define _REFOS_PROCESS_SERVER_DISPATCHER_PROCSERV_SYSCALL_H_
18
19#include "dispatcher.h"
20
21/*! @brief Check whether the given recieved message is a procserv syscall.
22    @param m Struct containing info about the recieved message.
23    @param userptr Output user pointer. Pass this into the generated dispatcher function.
24    @return DISPATCH_SUCCESS if message is a procserv syscall, DISPATCH_PASS otherwise.
25*/
26int check_dispatch_syscall(struct procserv_msg *m, void **userptr);
27
28int rpc_sv_proc_dispatcher(void *rpc_userptr, uint32_t label);
29
30#endif /* _REFOS_PROCESS_SERVER_DISPATCHER_PROCSERV_SYSCALL_H_ */
31