From 0f4a751e60a6c8ac40592ff44c74f1c9e4846d9a Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sun, 29 May 2022 01:07:48 +0300 Subject: continue documentation efforts. --- include/arch/cpu.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/arch/cpu.h') diff --git a/include/arch/cpu.h b/include/arch/cpu.h index 23b2911..763ebba 100644 --- a/include/arch/cpu.h +++ b/include/arch/cpu.h @@ -15,7 +15,15 @@ #include "../../arch/riscv32/include/cpu.h" #endif +/** + * Get current CPU ID. + * ID must be in range \c 0 .. \c num_cpus, where \c num_cpus is the number of + * cpus on this system. + * + * @return Current CPU ID. + */ id_t cpu_id(); + /* TODO: add more cpu handling functions */ #endif /* APOS_CPU_H */ -- cgit v1.3