STRUCT PCC_CHAN_REG(9)
π struct pcc_chan_reg(9) β PCC register bundle π
okay so this is a page from the Kernel API Manual, bestie, and it's literally about struct pcc_chan_reg β the PCC register bundle. no cap, that's the whole vibe. let's get into it π«Ά
β¨ SYNOPSIS β¨
like, here's the whole struct, and yes you're gonna want to copy it exactly:
struct pcc_chan_reg {
void __iomem *vaddr;
struct acpi_generic_address *gas;
u64 preserve_mask;
u64 set_mask;
u64 status_mask;
};
πΈ Members πΈ
so every field in this little bundle of joy, one by one β you're gonna slay this:
vaddrβ the cached virtual address for this register. it's already been looked up and stashed here for you, so you don't gotta redo the work every time, periodt πgasβ a pointer to the generic address structure for this register. that's the ACPI "where does this thing actually live" situation, iykyk β¨preserve_maskβ the bitmask to preserve when writing to this register. translation: the bits you're NOT touching, bestie, they stay exactly as they are πset_maskβ the bitmask to set when writing to this register. these are the bits that go β¨onβ¨ π¦status_maskβ the bitmask to determine and/or update the status for this register. yes it does both jobs, main character energy only π
π₯ SEE ALSO π₯
go read these next, fr fr β they're all in the Kernel file ./drivers/mailbox/pcc.c:
struct pcc_chan_info(9)pcc_map_interrupt(9)pcc_mbox_irq(9)pcc_mbox_request_channel(9)pcc_mbox_free_channel(9)pcc_send_data(9)pcc_startup(9)pcc_shutdown(9)parse_pcc_subspace(9)pcc_parse_subspace_irq(9)pcc_parse_subspace_db_reg(9)pcc_parse_subspace_shmem(9)acpi_pcc_probe(9)pcc_mbox_probe(9)
ngl, that's a whole reading list β but you got this, and honestly the lore is worth it ππ
and that's the whole thing!! this gem dropped out of the ./drivers/mailbox directory, dated October 2026, and it's filed under struct pcc_chan_reg(9). mwah, go touch some registers πππ§
π¦ 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