Drizzled Public API Documentation
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
buf0types.h
Go to the documentation of this file.
1
/*****************************************************************************
2
3
Copyright (C) 1995, 2009, Innobase Oy. All Rights Reserved.
4
5
This program is free software; you can redistribute it and/or modify it under
6
the terms of the GNU General Public License as published by the Free Software
7
Foundation; version 2 of the License.
8
9
This program is distributed in the hope that it will be useful, but WITHOUT
10
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
13
You should have received a copy of the GNU General Public License along with
14
this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
15
St, Fifth Floor, Boston, MA 02110-1301 USA
16
17
*****************************************************************************/
18
19
/**************************************************/
26
#pragma once
27
#ifndef buf0types_h
28
#define buf0types_h
29
31
typedef
struct
buf_page_struct
buf_page_t
;
33
typedef
struct
buf_block_struct
buf_block_t
;
35
typedef
struct
buf_chunk_struct
buf_chunk_t
;
37
typedef
struct
buf_pool_struct
buf_pool_t
;
39
typedef
struct
buf_pool_stat_struct
buf_pool_stat_t
;
41
typedef
struct
buf_buddy_stat_struct
buf_buddy_stat_t
;
42
44
typedef
byte
buf_frame_t
;
45
47
enum
buf_flush
{
48
BUF_FLUSH_LRU
= 0,
49
BUF_FLUSH_SINGLE_PAGE
,
50
BUF_FLUSH_LIST
,
52
BUF_FLUSH_N_TYPES
53
};
54
56
enum
buf_io_fix
{
57
BUF_IO_NONE
= 0,
58
BUF_IO_READ
,
59
BUF_IO_WRITE
60
};
61
63
/* @{ */
64
#if UNIV_WORD_SIZE <= 4
/* 32-bit system */
65
66
# define BUF_BUDDY_LOW_SHIFT 6
67
#else
/* 64-bit system */
68
69
# define BUF_BUDDY_LOW_SHIFT 7
70
#endif
71
#define BUF_BUDDY_LOW (1 << BUF_BUDDY_LOW_SHIFT)
72
75
#define BUF_BUDDY_SIZES (UNIV_PAGE_SIZE_SHIFT - BUF_BUDDY_LOW_SHIFT)
76
77
#define BUF_BUDDY_SIZES_MAX (UNIV_PAGE_SIZE_SHIFT_MAX - BUF_BUDDY_LOW_SHIFT)
78
82
#define BUF_BUDDY_HIGH (BUF_BUDDY_LOW << BUF_BUDDY_SIZES)
83
/* @} */
84
85
#endif
86
BUF_FLUSH_N_TYPES
Definition:
buf0types.h:52
buf_block_struct
Definition:
buf0buf.h:1428
buf_pool_stat_struct
The buffer pool statistics structure.
Definition:
buf0buf.h:1568
BUF_FLUSH_LRU
Definition:
buf0types.h:48
BUF_IO_WRITE
Definition:
buf0types.h:59
BUF_IO_NONE
Definition:
buf0types.h:57
buf_pool_struct
The buffer pool structure.
Definition:
buf0buf.h:1607
buf_io_fix
buf_io_fix
Definition:
buf0types.h:56
buf_frame_t
byte buf_frame_t
Definition:
buf0types.h:44
buf_buddy_stat_struct
Definition:
buf0buf.h:1593
buf_flush
buf_flush
Definition:
buf0types.h:47
buf_chunk_struct
Definition:
buf0buf.cc:300
BUF_FLUSH_SINGLE_PAGE
Definition:
buf0types.h:49
BUF_FLUSH_LIST
Definition:
buf0types.h:50
buf_page_struct
Definition:
buf0buf.h:1270
BUF_IO_READ
Definition:
buf0types.h:58
plugin
innobase
include
buf0types.h
Generated on Fri May 23 2014 13:09:19 for drizzle by
1.8.7