The manual
ginnOS
The reference: libc, the libraries and the kernel
Loading...
Searching...
No Matches
cpu_times_t Struct Reference

the timer ticks of a core since boot, as the "cpu" lines of Linux's /proc/stat. More...

#include </home/runner/work/ginnOS-docs/ginnOS-docs/ginnOS/src/kernel/cpu/cpu.h>

Data Fields

uint64_t user
uint64_t nice
uint64_t system
uint64_t idle

Detailed Description

the timer ticks of a core since boot, as the "cpu" lines of Linux's /proc/stat.

only the core itself adds to them, in its timer interrupt. another core that reads them on i686 can see a torn value when the low half overflows (after 497 days), which is only for display.

Field Documentation

◆ user

uint64_t cpu_times_t::user

◆ nice

uint64_t cpu_times_t::nice

◆ system

uint64_t cpu_times_t::system

◆ idle

uint64_t cpu_times_t::idle

The documentation for this struct was generated from the following file: