AquilaOS documentation
How it works, and its code
Loading...
Searching...
No Matches
cpu Struct Reference

A processor, and what runs on it. More...

#include <cpu.h>

Data Fields

struct cpu * self
int id
struct thread * thread
int idle
int kicked
struct arch_cpu arch

Detailed Description

A processor, and what runs on it.

Each CPU finds its own with curcpu().

Definition at line 11 of file cpu.h.

Field Documentation

◆ arch

◆ id

int cpu::id

Definition at line 13 of file cpu.h.

Referenced by aarch64_init(), x86_cpu_init(), and x86_smp_init().

◆ idle

int cpu::idle

Definition at line 15 of file cpu.h.

Referenced by sched_cpu_wake(), sched_idle_wakeup(), and x86_ap_start().

◆ kicked

int cpu::kicked

Definition at line 16 of file cpu.h.

Referenced by sched_cpu_wake().

◆ self

struct cpu* cpu::self

Definition at line 12 of file cpu.h.

Referenced by aarch64_init(), and x86_gdt_setup().

◆ thread

struct thread* cpu::thread

Definition at line 14 of file cpu.h.


The documentation for this struct was generated from the following file:
  • kernel/include/sys/cpu.h