ladivic
Loading...
Searching...
No Matches
ldvc_sysinfo.hpp
Go to the documentation of this file.
1/*
2 * This file is part of the ladivic library.
3 * Copyright (c) 2024 Nathanne Isip
4 *
5 * Permission is hereby granted, free of charge, to any person obtaining a copy
6 * of this software and associated documentation files (the "Software"), to deal
7 * in the Software without restriction, including without limitation the rights
8 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 * copies of the Software, and to permit persons to whom the Software is
10 * furnished to do so, subject to the following conditions:
11 *
12 * The above copyright notice and this permission notice shall be included in
13 * all copies or substantial portions of the Software.
14 *
15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21 * THE SOFTWARE.
22 */
23
24/**
25 *
26 * @file ldvc_sysinfo.hpp
27 * @brief Provides utilities for retrieving system information.
28 *
29 * This header file contains functions for retrieving various system information,
30 * including CPU information, total memory, and available disk space.
31 *
32 * @author Nathanne Isip
33 *
34 */
35
36#ifndef LDVC_SYSINFO_HPP
37#define LDVC_SYSINFO_HPP
38
39#include <ldvc_type.hpp>
40
41/**
42 *
43 * @brief Retrieves CPU information.
44 *
45 * This function retrieves information about the CPU,
46 * such as the model, architecture, and other relevant
47 * details.
48 *
49 * @return A string containing CPU information.
50 *
51 */
53
54/**
55 *
56 * @brief Retrieves the total amount of memory installed on the system.
57 *
58 * This function retrieves the total amount of memory installed on the system,
59 * typically expressed in bytes.
60 *
61 * @return The total amount of memory installed on the system.
62 *
63 */
65
66/**
67 *
68 * @brief Retrieves available disk space.
69 *
70 * This function retrieves information about the available disk space on the system,
71 * typically expressed in bytes.
72 *
73 * @return The available disk space on the system.
74 *
75 */
77
78/**
79 *
80 * @brief Retrieves the number of CPU cores available on the system.
81 *
82 * This function queries the system to determine the number of CPU cores
83 * available for processing. It provides valuable information for tasks
84 * such as workload distribution and parallel processing.
85 *
86 * @return The number of CPU cores available on the system.
87 *
88 */
90
91#endif
u64 ldvc_total_memory()
Retrieves the total amount of memory installed on the system.
u64 ldvc_disk_space()
Retrieves available disk space.
string ldvc_cpu_info()
Retrieves CPU information.
u32 ldvc_cpu_cores()
Retrieves the number of CPU cores available on the system.
Defines common types used throughout the library.