~ubuntu-branches/ubuntu/precise/mysql-5.1/precise

« back to all changes in this revision

Viewing changes to storage/innobase/include/fut0fut.h

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Tretkowski
  • Date: 2010-03-17 14:56:02 UTC
  • Revision ID: james.westby@ubuntu.com-20100317145602-x7e30l1b2sb5s6w6
Tags: upstream-5.1.45
ImportĀ upstreamĀ versionĀ 5.1.45

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/**********************************************************************
 
2
File-based utilities
 
3
 
 
4
(c) 1995 Innobase Oy
 
5
 
 
6
Created 12/13/1995 Heikki Tuuri
 
7
***********************************************************************/
 
8
 
 
9
 
 
10
#ifndef fut0fut_h
 
11
#define fut0fut_h
 
12
 
 
13
#include "univ.i"
 
14
 
 
15
#include "fil0fil.h"
 
16
#include "mtr0mtr.h"
 
17
 
 
18
/************************************************************************
 
19
Gets a pointer to a file address and latches the page. */
 
20
UNIV_INLINE
 
21
byte*
 
22
fut_get_ptr(
 
23
/*========*/
 
24
                                /* out: pointer to a byte in a frame; the file
 
25
                                page in the frame is bufferfixed and latched */
 
26
        ulint           space,  /* in: space id */
 
27
        fil_addr_t      addr,   /* in: file address */
 
28
        ulint           rw_latch, /* in: RW_S_LATCH, RW_X_LATCH */
 
29
        mtr_t*          mtr);   /* in: mtr handle */
 
30
 
 
31
#ifndef UNIV_NONINL
 
32
#include "fut0fut.ic"
 
33
#endif
 
34
 
 
35
#endif
 
36