Skip to content

Documentation #11

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jan 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions Documentation/cpu/cpu.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
.. _cpu_info_functions:

CPU Information Functions
-------------------------

This module provides functions for retrieving and displaying CPU information on Linux systems.

Functions
^^^^^^^^^

.. code-block:: c

void print_cpu_info(void)

Prints a summary of CPU information to the console.

.. note::
This function displays a maximum of 19 lines of information.

Returns:
None

-------

.. code-block:: c

void print_full_cpu_info(void)

Prints the complete CPU information to the console.

.. note::
Returns:
None

-------

Example
-------

.. code-block:: c

#include "cpu/cpu_info.h"

int main() {
print_cpu_info();
// print_full_cpu_info(); // Uncomment to print full information
return 0;
}