switch_gdt_and_percpu_base(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌈 switch_gdt_and_percpu_base(9) β€” Kernel API Manual πŸ’–

okay bestie, welcome to the little group chat for this kernel function β€” it’s giving early-boot glow-up energy, no cap ✨

✨ NAME ✨

switch_gdt_and_percpu_base β€” switch to direct GDT and runtime per CPU base πŸŽ€

πŸ¦‹ SYNOPSIS πŸ¦‹

void switch_gdt_and_percpu_base (int cpu );

πŸŽ€ ARGUMENTS πŸŽ€

  • cpu β€” the CPU number for which this is invoked πŸ‘‘

πŸ’… DESCRIPTION πŸ’…

okay so this one gets invoked during early boot to switch from the early GDT and early per CPU over to the direct GDT and the runtime per CPU area. literally a whole boot-time wardrobe change πŸ’–

on 32-bit the percpu base switch is implicit by loading the direct GDT. on 64bit this requires to update GSBASE β€” yes ma’am, that’s the whole vibe 😭

πŸ”₯ SEE ALSO πŸ”₯


mwah πŸ’‹ this page’s source/version and date are ./arch/x86/kernel/cpu, October 2026, and switch_gdt_and_percpu_base(9) β€” bye bestie, slay responsibly 🌸

πŸ“¦ where this page comes from