pcc_parse_subspace_db_reg(9)
π
pcc_parse_subspace_db_reg β Kernel API Manual, bestie edition β¨
okay so picture this: you're deep in the kernel, you found a PCC doorbell register, and now somebody's gotta parse it. That somebody is this function. It lives in the Kernel API Manual (that's the 9 in pcc_parse_subspace_db_reg(9), iykyk π), and honestly? It's giving "small function, big responsibilities."
πΈ NAME πΈ
pcc_parse_subspace_db_reg β the one that parses the PCC doorbell register π
Like. That's the whole job. Parse the doorbell register. No cap.
β¨ SYNOPSIS β¨
int pcc_parse_subspace_db_reg (struct pcc_chan_info *pchan , struct
acpi_subtable_header *pcct_entry );
it returns an int, it takes two pointers, and yes the argument list is spaced kinda weird in the original β I'm keeping it exactly as-is because we don't "fix" things in this house π
π¦ ARGUMENTS π¦
pchanβ pointer to the PCC channel info structure. your main character struct, fr fr. it's astruct pcc_chan_info *and it's where the channel lore lives πpcct_entryβ pointer to the ACPI subtable header. that's astruct acpi_subtable_header *, and it's the ACPI side of the story π
two pointers, one function, zero drama. (okay maybe a little drama.)
β RETURN β
0 for Success, else errno. π
like β 0 means we ate and left no crumbs, anything else means it's errno o'clock and you gotta go read the error code. periodt.
π«Ά SEE ALSO π«Ά
the whole friend group π§, and also where all this actually lives:
Kernel file ./drivers/mailbox/pcc.c
and the extended cast, in the order the original lists them (don't come for me about alphabetical order, I'm being faithful π ):
struct pcc_chan_reg(9)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_shmem(9)acpi_pcc_probe(9)pcc_mbox_probe(9)
bestie if you're here you're probably also gonna needpcc_parse_subspace_irqandpcc_parse_subspace_shmemβ they're the sibling parsers and they lowkey do the same vibe check on different registers π₯
that's the whole page!! mwah π source: ./drivers/mailbox Β· version: Kernel API Manual Β· date: October 2026 β stay hydrated, read your errnos, and slay bestie ππ
π¦ 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