MySQL 9.1.0
Source Code Documentation
os0proc.h
Go to the documentation of this file.
1/*****************************************************************************
2
3Copyright (c) 1995, 2024, Oracle and/or its affiliates.
4
5This program is free software; you can redistribute it and/or modify it under
6the terms of the GNU General Public License, version 2.0, as published by the
7Free Software Foundation.
8
9This program is designed to work with certain software (including
10but not limited to OpenSSL) that is licensed under separate terms,
11as designated in a particular file or component or in included license
12documentation. The authors of MySQL hereby grant you an additional
13permission to link the program and your derivative works with the
14separately licensed software that they have either included with
15the program or referenced in the documentation.
16
17This program is distributed in the hope that it will be useful, but WITHOUT
18ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
19FOR A PARTICULAR PURPOSE. See the GNU General Public License, version 2.0,
20for more details.
21
22You should have received a copy of the GNU General Public License along with
23this program; if not, write to the Free Software Foundation, Inc.,
2451 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
25
26*****************************************************************************/
27
28/** @file include/os0proc.h
29 The interface to the operating system
30 process control primitives
31
32 Created 9/30/1995 Heikki Tuuri
33 *******************************************************/
34
35#ifndef os0proc_h
36#define os0proc_h
37
38#include "univ.i"
39
40typedef void *os_process_t;
41typedef unsigned long int os_process_id_t;
42
43/** The total amount of memory currently allocated from the operating
44system with os_mem_alloc_large(). */
45extern std::atomic<ulint> os_total_large_mem_allocated;
46
47/** Whether to use large pages in the buffer pool */
48extern bool os_use_large_pages;
49
50/** Large page size. This may be a boot-time option on some platforms */
51extern uint os_large_page_size;
52
53/** Converts the current process id to a number.
54@return process id as a number */
56
57#endif
uint os_large_page_size
Large page size.
Definition: os0proc.cc:54
void * os_process_t
Definition: os0proc.h:40
std::atomic< ulint > os_total_large_mem_allocated
The total amount of memory currently allocated from the operating system with os_mem_alloc_large().
Definition: os0proc.cc:48
unsigned long int os_process_id_t
Definition: os0proc.h:41
ulint os_proc_get_number(void)
Converts the current process id to a number.
Definition: os0proc.cc:58
bool os_use_large_pages
Whether to use large pages in the buffer pool.
Definition: os0proc.cc:51
Version control for database, common definitions, and include files.
unsigned long int ulint
Definition: univ.i:406