#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 | |
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 |
The interface to the operating system process control primitives
Created 9/30/1995 Heikki Tuuri
Definition in file os0proc.h.
UNIV_INTERN void* os_mem_alloc_large | ( | ulint * | n) |
Allocates large pages memory.
Allocates large pages memory.
n | in/out: number of bytes |
Definition at line 72 of file os0proc.cc.
References os_fast_mutex_lock(), os_fast_mutex_unlock(), os_mem_alloc_large(), ut_2pow_round, ut_ad, ut_is_2pow, ut_list_mutex, ut_malloc_low(), and ut_total_allocated_memory.
Referenced by os_mem_alloc_large(), and row_merge_build_indexes().
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.
ptr | in: pointer returned by os_mem_alloc_large() |
size | in: size returned by os_mem_alloc_large() |
Definition at line 183 of file os0proc.cc.
References os_fast_mutex_lock(), os_fast_mutex_unlock(), os_mem_free_large(), ut_a, ut_free(), ut_list_mutex, and ut_total_allocated_memory.
Referenced by os_mem_free_large(), and row_merge_build_indexes().
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'.
Definition at line 57 of file os0proc.cc.
References os_proc_get_number().
Referenced by innobase_start_or_create_for_mysql(), os_proc_get_number(), srv_master_thread(), and trx_allocate_for_mysql().