Drizzled Public API Documentation

buf0types.h File Reference

Go to the source code of this file.

Macros

#define buf0types_h
#define BUF_BUDDY_LOW_SHIFT   6
#define BUF_BUDDY_LOW   (1 << BUF_BUDDY_LOW_SHIFT)
#define BUF_BUDDY_SIZES   (UNIV_PAGE_SIZE_SHIFT - BUF_BUDDY_LOW_SHIFT)
#define BUF_BUDDY_SIZES_MAX   (UNIV_PAGE_SIZE_SHIFT_MAX - BUF_BUDDY_LOW_SHIFT)
#define BUF_BUDDY_HIGH   (BUF_BUDDY_LOW << BUF_BUDDY_SIZES)

Typedefs

typedef struct buf_page_struct buf_page_t
typedef struct buf_block_struct buf_block_t
typedef struct buf_chunk_struct buf_chunk_t
typedef struct buf_pool_struct buf_pool_t
typedef struct buf_pool_stat_struct buf_pool_stat_t
typedef struct
buf_buddy_stat_struct 
buf_buddy_stat_t
typedef byte buf_frame_t

Enumerations

enum  buf_flush { BUF_FLUSH_LRU = 0, BUF_FLUSH_SINGLE_PAGE, BUF_FLUSH_LIST, BUF_FLUSH_N_TYPES }
enum  buf_io_fix { BUF_IO_NONE = 0, BUF_IO_READ, BUF_IO_WRITE }

Detailed Description

The database buffer pool global types for the directory

Created 11/17/1995 Heikki Tuuri

Definition in file buf0types.h.

Macro Definition Documentation

#define BUF_BUDDY_HIGH   (BUF_BUDDY_LOW << BUF_BUDDY_SIZES)
twice the maximum block size of the buddy system;

the underlying memory is aligned by this amount: this must be equal to UNIV_PAGE_SIZE

Definition at line 82 of file buf0types.h.

#define BUF_BUDDY_LOW   (1 << BUF_BUDDY_LOW_SHIFT)

minimum block size in the binary buddy system; must be at least sizeof(buf_page_t)

Definition at line 71 of file buf0types.h.

#define BUF_BUDDY_LOW_SHIFT   6

Parameters of binary buddy system for compressed pages (buf0buddy.h) Base-2 logarithm of the smallest buddy block size

Definition at line 66 of file buf0types.h.

#define BUF_BUDDY_SIZES   (UNIV_PAGE_SIZE_SHIFT - BUF_BUDDY_LOW_SHIFT)

number of buddy sizes

Definition at line 75 of file buf0types.h.

Typedef Documentation

typedef struct buf_block_struct buf_block_t

Buffer block for which an uncompressed page exists

Definition at line 33 of file buf0types.h.

Buffer pool buddy statistics struct

Definition at line 41 of file buf0types.h.

typedef struct buf_chunk_struct buf_chunk_t

Buffer pool chunk comprising buf_block_t

Definition at line 35 of file buf0types.h.

typedef byte buf_frame_t

A buffer frame.

See Also
page_t

Definition at line 44 of file buf0types.h.

typedef struct buf_page_struct buf_page_t

Buffer page (uncompressed or compressed)

Definition at line 31 of file buf0types.h.

Buffer pool statistics struct

Definition at line 39 of file buf0types.h.

typedef struct buf_pool_struct buf_pool_t

Buffer pool comprising buf_chunk_t

Definition at line 37 of file buf0types.h.

Enumeration Type Documentation

enum buf_flush

Flags for flush types

Enumerator:
BUF_FLUSH_LRU 

flush via the LRU list

BUF_FLUSH_SINGLE_PAGE 

flush a single page

BUF_FLUSH_LIST 

flush via the flush list of dirty blocks

BUF_FLUSH_N_TYPES 

index of last element + 1

Definition at line 47 of file buf0types.h.

enum buf_io_fix

Flags for io_fix types

Enumerator:
BUF_IO_NONE 

no pending I/O

BUF_IO_READ 

read pending

BUF_IO_WRITE 

write pending

Definition at line 56 of file buf0types.h.