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 name server syscalls. 15 16 Handles calls to process server name server interface. The process server acts as the root 17 name server. 18*/ 19 20#ifndef _REFOS_PROCESS_SERVER_DISPATCHER_NAMESERV_SYSCALL_H_ 21#define _REFOS_PROCESS_SERVER_DISPATCHER_NAMESERV_SYSCALL_H_ 22 23#include "../common.h" 24#include "dispatcher.h" 25 26/*! @brief Check whether the given recieved message is a nameserv syscall. 27 @param m Struct containing info about the recieved message. 28 @param userptr Output user pointer. Pass this into the generated dispatcher function. 29 @return DISPATCH_SUCCESS if message is a nameserv syscall, DISPATCH_PASS otherwise. 30*/ 31int check_dispatch_nameserv(struct procserv_msg *m, void **userptr); 32 33int rpc_sv_name_dispatcher(void *rpc_userptr, uint32_t label); 34 35#endif /* _REFOS_PROCESS_SERVER_DISPATCHER_NAMESERV_SYSCALL_H_ */