DMCP interface
03.15_020
|
System data buffers. More...
Macros | |
#define | AUX_BUF_SIZE (5*512) |
System aux memory buffer size. | |
Functions | |
char * | aux_buf_ptr () |
Get pointer to aux memory buffer. More... | |
void * | write_buf_ptr () |
Get pointer to write buffer. More... | |
int | write_buf_size () |
Get write buffer size. More... | |
void | sys_clear_write_buf_used () |
Clear 'write-buffer-used' flag. | |
int | sys_write_buf_used () |
Get 'write-buffer-used' flag. More... | |
System data buffers.
System gives access to two memory blocks (Auxiliary buffer and write buffer) for temporary use by program. Mainly to avoid repeated use of memory allocation and avoid possibility of not available memory.
Auxiliary buffer is always available.
Write buffer is shared with system for disk write operations. Therefore data in this buffer can be overwritten by disk write operations. User can use sys_clear_write_buf_used() and sys_write_buf_used() functions to clear and check write buffer used flag. User should also avoid to use this buffer if disk write mode is enabled (see sys_disk_write_enable() ).
char* aux_buf_ptr | ( | ) |
Get pointer to aux memory buffer.
int sys_write_buf_used | ( | ) |
Get 'write-buffer-used' flag.
This flag is se by any disk write operation which uses write buffer.
void* write_buf_ptr | ( | ) |
Get pointer to write buffer.
int write_buf_size | ( | ) |
Get write buffer size.