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