ladivic
Loading...
Searching...
No Matches
ldvc_sysinfo.hpp File Reference

Provides utilities for retrieving system information. More...

#include <ldvc_type.hpp>
Include dependency graph for ldvc_sysinfo.hpp:

Go to the source code of this file.

Functions

string ldvc_cpu_info ()
 Retrieves CPU information.
 
u64 ldvc_total_memory ()
 Retrieves the total amount of memory installed on the system.
 
u64 ldvc_disk_space ()
 Retrieves available disk space.
 
u32 ldvc_cpu_cores ()
 Retrieves the number of CPU cores available on the system.
 

Detailed Description

Provides utilities for retrieving system information.

This header file contains functions for retrieving various system information, including CPU information, total memory, and available disk space.

Author
Nathanne Isip

Definition in file ldvc_sysinfo.hpp.

Function Documentation

◆ ldvc_cpu_cores()

u32 ldvc_cpu_cores ( )

Retrieves the number of CPU cores available on the system.

This function queries the system to determine the number of CPU cores available for processing. It provides valuable information for tasks such as workload distribution and parallel processing.

Returns
The number of CPU cores available on the system.

◆ ldvc_cpu_info()

string ldvc_cpu_info ( )

Retrieves CPU information.

This function retrieves information about the CPU, such as the model, architecture, and other relevant details.

Returns
A string containing CPU information.

◆ ldvc_disk_space()

u64 ldvc_disk_space ( )

Retrieves available disk space.

This function retrieves information about the available disk space on the system, typically expressed in bytes.

Returns
The available disk space on the system.

◆ ldvc_total_memory()

u64 ldvc_total_memory ( )

Retrieves the total amount of memory installed on the system.

This function retrieves the total amount of memory installed on the system, typically expressed in bytes.

Returns
The total amount of memory installed on the system.