1f08c3bdfSopenharmony_ci// SPDX-License-Identifier: GPL-2.0-or-later 2f08c3bdfSopenharmony_ci/* 3f08c3bdfSopenharmony_ci * Copyright (c) 2020 Linaro Limited. All rights reserved. 4f08c3bdfSopenharmony_ci * Author: Viresh Kumar <viresh.kumar@linaro.org> 5f08c3bdfSopenharmony_ci */ 6f08c3bdfSopenharmony_ci 7f08c3bdfSopenharmony_ci#ifndef LAPI_INIT_MODULE_H__ 8f08c3bdfSopenharmony_ci#define LAPI_INIT_MODULE_H__ 9f08c3bdfSopenharmony_ci 10f08c3bdfSopenharmony_ci#include "config.h" 11f08c3bdfSopenharmony_ci#include "tst_test.h" 12f08c3bdfSopenharmony_ci#include "lapi/syscalls.h" 13f08c3bdfSopenharmony_ci 14f08c3bdfSopenharmony_cistatic inline int init_module(void *module_image, unsigned long len, 15f08c3bdfSopenharmony_ci const char *param_values) 16f08c3bdfSopenharmony_ci{ 17f08c3bdfSopenharmony_ci return tst_syscall(__NR_init_module, module_image, len, param_values); 18f08c3bdfSopenharmony_ci} 19f08c3bdfSopenharmony_ci 20f08c3bdfSopenharmony_cistatic inline int finit_module(int fd, const char *param_values, int flags) 21f08c3bdfSopenharmony_ci{ 22f08c3bdfSopenharmony_ci return tst_syscall(__NR_finit_module, fd, param_values, flags); 23f08c3bdfSopenharmony_ci} 24f08c3bdfSopenharmony_ci 25f08c3bdfSopenharmony_ci#endif /* LAPI_INIT_MODULE_H__ */ 26