drizzle
C++ MySQL-protocol-compatible database server
Loading...
Searching...
No Matches
os0proc.h File Reference
#include "univ.i"
Include dependency graph for os0proc.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef void * os_process_t
typedef unsigned long int os_process_id_t

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

ibool os_use_large_pages
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.h.

Macro Definition Documentation

◆ os0proc_h

#define os0proc_h

Definition at line 29 of file os0proc.h.

Typedef Documentation

◆ os_process_id_t

typedef unsigned long int os_process_id_t

Definition at line 39 of file os0proc.h.

◆ os_process_t

typedef void* os_process_t

Definition at line 38 of file os0proc.h.

Function Documentation

◆ os_mem_alloc_large()

UNIV_INTERN void * os_mem_alloc_large ( ulint * n)

Allocates large pages memory.

Returns
allocated memory in/out: number of bytes

Allocates large pages memory.

Returns
allocated memory
Parameters
nin/out: number of bytes

Definition at line 72 of file os0proc.cc.

◆ os_mem_free_large()

UNIV_INTERN void os_mem_free_large ( void * ptr,
ulint size )

Frees large pages memory. in: size returned by os_mem_alloc_large()

Frees large pages memory.

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

Definition at line 183 of file os0proc.cc.

◆ os_proc_get_number()

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 57 of file os0proc.cc.

Variable Documentation

◆ os_large_page_size

ulint os_large_page_size
extern

Definition at line 47 of file os0proc.cc.

◆ os_use_large_pages

ibool os_use_large_pages
extern

Definition at line 45 of file os0proc.cc.