blob: cf6396363bb49b9756339186ec540bb22a30d17e [file] [log] [blame]
Andrew Scull2b40f802022-05-30 10:00:11 +00001/* 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 */