1 /* 2 * Copyright (C) 2022 Intel Corporation. 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 */ 6 7 #include <unistd.h> 8 #include <fcntl.h> 9 #include <string.h> 10 #include <stdlib.h> 11 #include <stdio.h> 12 13 #include <sys/mman.h> 14 15 //The size of the shared memory region 16 #define REGION_SIZE 32768 17 18 enum return_vals {success = 0, failure = -1}; 19 20 int setup_ivshmem_region(const char*); 21 int close_ivshmem_region(void); 22 size_t read_ivshmem_region(char *, size_t); 23 size_t write_ivshmem_region(char *, size_t); 24