1/* SPDX-License-Identifier: GPL-2.0+ */ 2/* 3 * Copyright (c) 2022 Google, Inc. 4 * Written by Andrew Scull <ascull@google.com> 5 */ 6 7#ifndef __ASM_FUZZING_ENGINE_H 8#define __ASM_FUZZING_ENGINE_H 9 10/** Function to get fuzzing engine input data. */ 11/** 12 * sandbox_fuzzing_engine_get_input() - get an input from the sandbox fuzzing 13 * engine 14 * 15 * The function will return a pointer to the input data and the size of the 16 * data pointed to. The pointer will remain valid until the next invocation of 17 * this function. 18 * 19 * @data: output pointer to input data 20 * @size output size of input data 21 * Return: 0 if OK, -ve on error 22 */ 23int sandbox_fuzzing_engine_get_input(const uint8_t **data, size_t *size); 24 25#endif /* __ASM_FUZZING_ENGINE_H */ 26