STRUCT TMIGR_HIERARCHY(9)
π struct tmigr_hierarchy(9) π
okay so bestie, welcome to the struct tmigr_hierarchy(9) page from the Kernel API Manual β yes it's a kernel struct, yes it's lowkey iconic, and yes I'm gonna walk you through it like we're annotating it in the group chat π«Ά
π NAME π
struct tmigr_hierarchy β it's a hierarchy that's associated to a given CPU capacity. that's the whole vibe β¨
Here's the tea though: homogeneous systems only get one hierarchy. heterogenous systems get one hierarchy per CPU capacity. so like, more capacity variety = more hierarchies, periodt π
πΈ SYNOPSIS πΈ
struct tmigr_hierarchy {
struct cpumask *cpumask;
struct tmigr_group *root;
unsigned long capacity;
struct list_head node;
struct list_head level_list[];
};
look at her. so structured. so organized. main character struct fr fr π
β¨ Members β¨
so this is the part where we meet everybody in the struct, one by one, no skipping π₯°
cpumaskβ the CPUs that belong to this hierarchy. it's a pointer to astruct cpumask, and it's literally the guest list for this hierarchy's party πrootβ the current root of the hierarchy. astruct tmigr_grouppointer, and it's giving "the one at the top of the tree" energy π³πcapacityβ the CPU capacity that's associated to this hierarchy, typed asunsigned long. this is the little label that tells you which capacity club this hierarchy belongs to πnodeβ astruct list_headthat is this thing's node in the global hierarchy list. so she's linked up with all her sister hierarchies, iykyk πlevel_listβ per level lists of tmigr groups. note the[]β it's a flexible-ish trailing array ofstruct list_head, so there's one list per level, bestie πβ¨
π¦ SEE ALSO π¦
go read these next, they're all in the kernel file ./kernel/time/timer_migration.h and they're all part of the same friend group π
struct tmigr_event(9)struct tmigr_group(9)struct tmigr_cpu(9)union tmigr_state(9)
ngl this struct is small but she's doing a LOT of work. respect the capacity partitioning, okay? π«Ά
and that's the page!! this one came from ./kernel/time and the date on it is October 2026, so like, mark your calendars bestie ππ slay, go read your kernel source, and remember: every hierarchy deserves its own capacity. periodt πβ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms