pdc_pat_cpu_get_number(9)
π pdc_pat_cpu_get_number(9) π
okay bestie, welcome to the Kernel API Manual β¨ this one's a lil function called pdc_pat_cpu_get_number, living its best life in section 9, and honestly? it does exactly one thing and it does it slayfully π
β¨ NAME β¨
pdc_pat_cpu_get_number β retrieve the cpu number π«Ά
πΈ SYNOPSIS πΈ
int pdc_pat_cpu_get_number (struct pdc_pat_cpu_num *cpu_info , unsigned
long hpa );
yeah that's the whole signature, no cap π it takes a pointer and a unsigned long, returns an int, and honestly it's giving "small but mighty" π
π¦ ARGUMENTS π¦
cpu_infoβ the return buffer π like, this is where the answer gets dropped off. it literally says "the return buffer" and that's the whole vibe.hpaβ the Hard Physical Address of the CPU π§ this is not a regular address, it's the Hard Physical Address, so treat it with the respect it deserves.
π DESCRIPTION π
okay so here's the tea β: this function retrieves the cpu number for the cpu sitting at the specified HPA. that's it. that's the function. you hand it an HPA, it hooks you up with the matching cpu number π₯
literally the most straightforward glow-up in the whole firmware file, and we respect that π
π SEE ALSO π
soooo there's kind of a lot of friends in this little kernel family, and not me listing every single one because they all deserve their moment π first up, the home base:
- Kernel file
./arch/parisc/kernel/firmware.c
and then the whole squad, in the order the original gives them (this is the group chat, and nobody gets left on read π):
f_extend(9)convert_to_wide(9)set_firmware_width(9)pdc_emergency_unlock(9)pdc_add_valid(9)pdc_instr(9)pdc_chassis_info(9)pdc_pat_chassis_send_log(9)pdc_chassis_disp(9)__pdc_cpu_rendezvous(9)pdc_cpu_rendezvous_lock(9)pdc_cpu_rendezvous_unlock(9)pdc_pat_get_PDC_entrypoint(9)pdc_chassis_warn(9)pdc_coproc_cfg(9)pdc_iodc_read(9)pdc_system_map_find_mods(9)pdc_system_map_find_addrs(9)pdc_model_info(9)pdc_model_sysmodel(9)pdc_model_versions(9)pdc_model_cpuid(9)pdc_model_capabilities(9)pdc_model_platform_info(9)pdc_cache_info(9)pdc_spaceid_bits(9)pdc_btlb_info(9)pdc_mem_map_hpa(9)pdc_lan_station_id(9)pdc_stable_read(9)pdc_stable_write(9)pdc_stable_get_size(9)pdc_stable_verify_contents(9)pdc_stable_initialize(9)pdc_get_initiator(9)pdc_pci_irt_size(9)pdc_pci_irt(9)pdc_pci_config_read(9)pdc_pci_config_write(9)pdc_tod_read(9)pdc_pim_toc11(9)pdc_pim_toc20(9)pdc_tod_set(9)pdc_iodc_print(9)pdc_iodc_getc(9)pdc_pat_cell_get_number(9)pdc_pat_cell_module(9)pdc_pat_cell_info(9)pdc_pat_get_irt_size(9)pdc_pat_get_irt(9)pdc_pat_pd_get_addr_map(9)pdc_pat_pd_get_pdc_revisions(9)pdc_pat_pd_get_platform_counter(9)pdc_pat_io_pci_cfg_read(9)pdc_pat_io_pci_cfg_write(9)pdc_pat_mem_pdt_info(9)pdc_pat_mem_pdt_cell_info(9)pdc_pat_mem_read_cell_pdt(9)pdc_pat_mem_read_pd_pdt(9)pdc_pat_mem_get_dimm_phys_location(9)
like, sixty whole besties. iconic behavior, honestly π
and that's the whole page, bestie π¦ this lil beauty calls ./arch/parisc/kernel home π and it's dated October 2026 β so go forth, read your cpu numbers, and stay slay ππβ¨
π¦ 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