MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
os0proc.cc File Reference
#include "os0proc.h"
#include "ut0mem.h"
#include "ut0byte.h"
Include dependency graph for os0proc.cc:

Go to the source code of this file.

Functions

UNIV_INTERN ulint os_proc_get_number (void)
UNIV_INTERN void * os_mem_alloc_large (ulint *n)
UNIV_INTERN void os_mem_free_large (void *ptr, ulint size)

Variables

UNIV_INTERN ibool os_use_large_pages
UNIV_INTERN ulint os_large_page_size

Detailed Description

The interface to the operating system process control primitives

Created 9/30/1995 Heikki Tuuri

Definition in file os0proc.cc.

Function Documentation

UNIV_INTERN void* os_mem_alloc_large ( ulint *  n)

Allocates large pages memory.

Returns
allocated memory
Parameters
nin/out: number of bytes

Definition at line 70 of file os0proc.cc.

Here is the call graph for this function:

UNIV_INTERN void os_mem_free_large ( void *  ptr,
ulint  size 
)

Frees large pages memory.

Parameters
ptrin: pointer returned by os_mem_alloc_large()
sizein: size returned by os_mem_alloc_large()

Definition at line 178 of file os0proc.cc.

Here is the call graph for this function:

UNIV_INTERN ulint os_proc_get_number ( void  )

Converts the current process id to a number. It is not guaranteed that the number is unique. In Linux returns the 'process number' of the current thread. That number is the same as one sees in 'top', for example. In Linux the thread id is not the same as one sees in 'top'.

Returns
process id as a number

Definition at line 55 of file os0proc.cc.

Here is the caller graph for this function: