/usr/src/packages/BUILD/libsmbios-2.2.27/src/include/smbios_c/memory.h

Go to the documentation of this file.
00001 // vim:expandtab:autoindent:tabstop=4:shiftwidth=4:filetype=c:
00002 /*
00003  * Copyright (C) 2005 Dell Inc.
00004  *  by Michael Brown <Michael_E_Brown@dell.com>
00005  * Licensed under the Open Software License version 2.1
00006  *
00007  * Alternatively, you can redistribute it and/or modify
00008  * it under the terms of the GNU General Public License as published
00009  * by the Free Software Foundation; either version 2 of the License,
00010  * or (at your option) any later version.
00011 
00012  * This program is distributed in the hope that it will be useful, but
00013  * WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
00015  * See the GNU General Public License for more details.
00016  */
00017 
00018 #ifndef C_MEMORY_H
00019 #define C_MEMORY_H
00020 
00021 // include smbios_c/compat.h first
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 // Following calls must be properly nested in equal pairs
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  /* MEMORY_H */

Generated on Mon Sep 10 22:32:56 2012 for libsmbios_c library by  doxygen 1.4.6