libsmbios_c library
memory.h File Reference
#include "smbios_c/compat.h"
#include "smbios_c/types.h"
Include dependency graph for memory.h:

Go to the source code of this file.

Macros

#define MEMORY_DEFAULTS   0x0000
 
#define MEMORY_GET_SINGLETON   0x0001
 
#define MEMORY_GET_NEW   0x0002
 
#define MEMORY_UNIT_TEST_MODE   0x0004
 
#define MEMORY_NO_ERR_CLEAR   0x0008
 

Functions

LIBSMBIOS_C_DLL_SPEC struct memory_access_obj * memory_obj_factory (int flags,...)
 
LIBSMBIOS_C_DLL_SPEC void memory_obj_free (struct memory_access_obj *)
 
LIBSMBIOS_C_DLL_SPEC int memory_obj_read (const struct memory_access_obj *, void *buffer, u64 offset, size_t length)
 
LIBSMBIOS_C_DLL_SPEC int memory_obj_write (const struct memory_access_obj *, void *buffer, u64 offset, size_t length)
 
LIBSMBIOS_C_DLL_SPEC const char * memory_obj_strerror (const struct memory_access_obj *m)
 
LIBSMBIOS_C_DLL_SPEC s64 memory_obj_search (const struct memory_access_obj *, const char *pat, size_t patlen, u64 start, u64 end, u64 stride)
 
LIBSMBIOS_C_DLL_SPEC void memory_obj_suggest_leave_open (struct memory_access_obj *)
 
LIBSMBIOS_C_DLL_SPEC void memory_obj_suggest_close (struct memory_access_obj *)
 
LIBSMBIOS_C_DLL_SPEC bool memory_obj_should_close (const struct memory_access_obj *)
 

Macro Definition Documentation

◆ MEMORY_DEFAULTS

#define MEMORY_DEFAULTS   0x0000

◆ MEMORY_GET_NEW

#define MEMORY_GET_NEW   0x0002

◆ MEMORY_GET_SINGLETON

#define MEMORY_GET_SINGLETON   0x0001

◆ MEMORY_NO_ERR_CLEAR

#define MEMORY_NO_ERR_CLEAR   0x0008

◆ MEMORY_UNIT_TEST_MODE

#define MEMORY_UNIT_TEST_MODE   0x0004

Function Documentation

◆ memory_obj_factory()

LIBSMBIOS_C_DLL_SPEC struct memory_access_obj * memory_obj_factory ( int flags,
... )

◆ memory_obj_free()

LIBSMBIOS_C_DLL_SPEC void memory_obj_free ( struct memory_access_obj * )

◆ memory_obj_read()

LIBSMBIOS_C_DLL_SPEC int memory_obj_read ( const struct memory_access_obj * ,
void * buffer,
u64 offset,
size_t length )

◆ memory_obj_search()

LIBSMBIOS_C_DLL_SPEC s64 memory_obj_search ( const struct memory_access_obj * ,
const char * pat,
size_t patlen,
u64 start,
u64 end,
u64 stride )

◆ memory_obj_should_close()

LIBSMBIOS_C_DLL_SPEC bool memory_obj_should_close ( const struct memory_access_obj * )

◆ memory_obj_strerror()

LIBSMBIOS_C_DLL_SPEC const char * memory_obj_strerror ( const struct memory_access_obj * m)

◆ memory_obj_suggest_close()

LIBSMBIOS_C_DLL_SPEC void memory_obj_suggest_close ( struct memory_access_obj * )

◆ memory_obj_suggest_leave_open()

LIBSMBIOS_C_DLL_SPEC void memory_obj_suggest_leave_open ( struct memory_access_obj * )

◆ memory_obj_write()

LIBSMBIOS_C_DLL_SPEC int memory_obj_write ( const struct memory_access_obj * ,
void * buffer,
u64 offset,
size_t length )