00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef C_MEMORY_H
00019 #define C_MEMORY_H
00020
00021
00022 #include "smbios_c/compat.h"
00023 #include "smbios_c/types.h"
00024
00025 EXTERN_C_BEGIN;
00026
00040 LIBSMBIOS_C_DLL_SPEC int memory_read(void *buffer, u64 offset, size_t length);
00041
00055 LIBSMBIOS_C_DLL_SPEC int memory_write(void *buffer, u64 offset, size_t length);
00056
00068 LIBSMBIOS_C_DLL_SPEC s64 memory_search(const char *pat, size_t patlen, u64 start, u64 end, u64 stride);
00069
00070
00071
00083 LIBSMBIOS_C_DLL_SPEC void LIBSMBIOS_C_DLL_SPEC memory_suggest_leave_open();
00084
00096 LIBSMBIOS_C_DLL_SPEC void memory_suggest_close();
00097
00102 LIBSMBIOS_C_DLL_SPEC const char * memory_strerror();
00103
00104
00105 EXTERN_C_END;
00106
00107 #endif