MySQL  8.0.21
Source Code Documentation
os0proc.h File Reference

The interface to the operating system process control primitives. More...

#include "univ.i"

Go to the source code of this file.

Typedefs

typedef void * os_process_t
 
typedef unsigned long int os_process_id_t
 

Functions

ulint os_proc_get_number (void)
 Converts the current process id to a number. More...
 
void * os_mem_alloc_large (ulint *n)
 Allocates large pages memory. More...
 
void os_mem_free_large (void *ptr, ulint size)
 Frees large pages memory. More...
 

Variables

ulint os_total_large_mem_allocated
 The total amount of memory currently allocated from the operating system with os_mem_alloc_large(). More...
 
bool os_use_large_pages
 Whether to use large pages in the buffer pool. More...
 
uint os_large_page_size
 Large page size. More...
 

Detailed Description

The interface to the operating system process control primitives.

Created 9/30/1995 Heikki Tuuri

Typedef Documentation

◆ os_process_id_t

typedef unsigned long int os_process_id_t

◆ os_process_t

typedef void* os_process_t

Function Documentation

◆ os_mem_alloc_large()

void* os_mem_alloc_large ( ulint *  n)

Allocates large pages memory.

Parameters
[in,out]nNumber of bytes to allocate
Returns
allocated memory

◆ os_mem_free_large()

void os_mem_free_large ( void *  ptr,
ulint  size 
)

Frees large pages memory.

Parameters
[in]ptrpointer returned by os_mem_alloc_large()
[in]sizesize returned by os_mem_alloc_large()

◆ os_proc_get_number()

ulint os_proc_get_number ( void  )

Converts the current process id to a number.

Returns
process id as a number

Variable Documentation

◆ os_large_page_size

uint os_large_page_size

Large page size.

This may be a boot-time option on some platforms

◆ os_total_large_mem_allocated

ulint os_total_large_mem_allocated

The total amount of memory currently allocated from the operating system with os_mem_alloc_large().

◆ os_use_large_pages

bool os_use_large_pages

Whether to use large pages in the buffer pool.