drizzle
C++ MySQL-protocol-compatible database server
Loading...
Searching...
No Matches
buf0buddy.h
Go to the documentation of this file.
1/*****************************************************************************
2
3Copyright (C) 2006, 2009, Innobase Oy. All Rights Reserved.
4
5This program is free software; you can redistribute it and/or modify it under
6the terms of the GNU General Public License as published by the Free Software
7Foundation; version 2 of the License.
8
9This program is distributed in the hope that it will be useful, but WITHOUT
10ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
13You should have received a copy of the GNU General Public License along with
14this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
15St, Fifth Floor, Boston, MA 02110-1301 USA
16
17*****************************************************************************/
18
19/**************************************************/
25
26#pragma once
27#ifndef buf0buddy_h
28#define buf0buddy_h
29
30#ifdef UNIV_MATERIALIZE
31# undef UNIV_INLINE
32# define UNIV_INLINE
33#endif
34
35#include "univ.i"
36#include "buf0types.h"
37
38/**********************************************************************/
48UNIV_INLINE
49void*
51/*============*/
52 buf_pool_t* buf_pool,
54 ulint size,
55 ibool* lru)
59 __attribute__((malloc));
60
61/**********************************************************************/
63UNIV_INLINE
64void
66/*===========*/
67 buf_pool_t* buf_pool,
69 void* buf,
71 ulint size)
72 __attribute__((nonnull));
73
74#ifndef UNIV_NONINL
75# include "buf0buddy.ic"
76#endif
77
78#endif /* buf0buddy_h */
UNIV_INLINE void * buf_buddy_alloc(buf_pool_t *buf_pool, ulint size, ibool *lru) __attribute__((malloc))
UNIV_INLINE void buf_buddy_free(buf_pool_t *buf_pool, void *buf, ulint size) __attribute__((nonnull))
struct buf_pool_struct buf_pool_t
Definition buf0types.h:37