#include "mysys_priv.h"
#include <m_string.h>
#include <errno.h>
'defines' |
#define | MAP_TO_USE_RAID |
#define | lock_append_buffer(info) |
#define | unlock_append_buffer(info) |
#define | IO_ROUND_UP(X) (((X)+IO_SIZE-1) & ~(IO_SIZE-1)) |
#define | IO_ROUND_DN(X) ( (X) & ~(IO_SIZE-1)) |
#define | LOCK_APPEND_BUFFER |
#define | UNLOCK_APPEND_BUFFER |
Funciones |
void | setup_io_cache (IO_CACHE *info) |
int | init_io_cache (IO_CACHE *info, File file, uint cachesize, enum cache_type type, my_off_t seek_offset, pbool use_async_io, myf cache_myflags) |
my_bool | reinit_io_cache (IO_CACHE *info, enum cache_type type, my_off_t seek_offset, pbool use_async_io __attribute__((unused)), pbool clear_cache) |
int | _my_b_read (register IO_CACHE *info, byte *Buffer, uint Count) |
int | _my_b_seq_read (register IO_CACHE *info, byte *Buffer, uint Count) |
int | _my_b_get (IO_CACHE *info) |
int | _my_b_write (register IO_CACHE *info, const byte *Buffer, uint Count) |
int | my_b_append (register IO_CACHE *info, const byte *Buffer, uint Count) |
int | my_b_safe_write (IO_CACHE *info, const byte *Buffer, uint Count) |
int | my_block_write (register IO_CACHE *info, const byte *Buffer, uint Count, my_off_t pos) |
int | my_b_flush_io_cache (IO_CACHE *info, int need_append_buffer_lock) |
int | end_io_cache (IO_CACHE *info) |
Documentación de los 'defines'
#define IO_ROUND_DN |
( |
|
X | ) |
( (X) & ~(IO_SIZE-1)) |
#define IO_ROUND_UP |
( |
|
X | ) |
(((X)+IO_SIZE-1) & ~(IO_SIZE-1)) |
#define lock_append_buffer |
( |
|
info | ) |
|
#define LOCK_APPEND_BUFFER |
#define UNLOCK_APPEND_BUFFER |
#define unlock_append_buffer |
( |
|
info | ) |
|
Documentación de las funciones
int my_b_flush_io_cache |
( |
IO_CACHE * |
info, |
|
|
int |
need_append_buffer_lock |
|
) |
| |