Blender V4.5
BLI_system.h File Reference
#include <stdio.h>

Go to the source code of this file.

Macros

#define BLI_SYSTEM_PID_H   <unistd.h>

Functions

int BLI_cpu_support_sse2 (void)
int BLI_cpu_support_sse42 (void)
void BLI_system_backtrace_with_os_info (FILE *fp, const void *os_info)
void BLI_system_backtrace (FILE *fp)
char * BLI_cpu_brand_string (void)
void BLI_hostname_get (char *buffer, size_t bufsize)
size_t BLI_system_memory_max_in_megabytes (void)
int BLI_system_memory_max_in_megabytes_int (void)

Macro Definition Documentation

◆ BLI_SYSTEM_PID_H

#define BLI_SYSTEM_PID_H   <unistd.h>

Definition at line 61 of file BLI_system.h.

Function Documentation

◆ BLI_cpu_brand_string()

char * BLI_cpu_brand_string ( void )

Get CPU brand, result is to be MEM_freeN()-ed.

Definition at line 133 of file system.cc.

References __cpuid(), BLI_cpu_brand_string(), BLI_strdup(), and result.

Referenced by BLI_cpu_brand_string().

◆ BLI_cpu_support_sse2()

int BLI_cpu_support_sse2 ( void )

Definition at line 29 of file system.cc.

References BLI_cpu_support_sse2().

Referenced by BLI_cpu_support_sse2().

◆ BLI_cpu_support_sse42()

int BLI_cpu_support_sse42 ( void )

◆ BLI_hostname_get()

void BLI_hostname_get ( char * buffer,
size_t bufsize )

Obtain the hostname from the system.

This simply determines the host's name, and doesn't do any DNS lookup of any IP address of the machine. As such, it's only usable for identification purposes, and not for reachability over a network.

Parameters
bufferCharacter buffer to write the hostname into.
bufsizeSize of the character buffer, including trailing '\0'.

Definition at line 180 of file system.cc.

References BLI_hostname_get(), and BLI_strncpy().

Referenced by BLI_hostname_get(), and stampdata().

◆ BLI_system_backtrace()

◆ BLI_system_backtrace_with_os_info()

void BLI_system_backtrace_with_os_info ( FILE * fp,
const void * os_info )

◆ BLI_system_memory_max_in_megabytes()

size_t BLI_system_memory_max_in_megabytes ( void )

Get maximum addressable memory in megabytes.

Definition at line 196 of file system.cc.

References BLI_system_memory_max_in_megabytes().

Referenced by BLI_system_memory_max_in_megabytes(), and BLI_system_memory_max_in_megabytes_int().

◆ BLI_system_memory_max_in_megabytes_int()

int BLI_system_memory_max_in_megabytes_int ( void )

Get maximum addressable memory in megabytes (clamped to #INT_MAX).

Definition at line 206 of file system.cc.

References BLI_system_memory_max_in_megabytes(), BLI_system_memory_max_in_megabytes_int(), and min_zz().

Referenced by BKE_blendfile_userdef_from_defaults(), and BLI_system_memory_max_in_megabytes_int().