pdc_model_sysmodel(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… pdc_model_sysmodel(9) β€” aka the "what even IS this machine" page

Okay bestie, welcome to the Kernel API Manual, section 9. Today's main character is pdc_model_sysmodel(9). Yes the name is a mouthful. Yes it's iconic. Let's go. ✨


🌸 NAME 🌸

pdc_model_sysmodel β€” get the system model name. That's it. That's the whole vibe check. πŸŽ€


✨ SYNOPSIS ✨

int pdc_model_sysmodel (unsigned int os_id , char *name );

Look at her. Two args, returns an int. Lowkey elegant, ngl.


🫢 ARGUMENTS 🫢

  • os_id β€” the operating system ID you're asking for. It's an OS_ID_* value, so like, pick your fave from the OS_ID_* family. πŸ’–
  • name β€” a char array that has to be at least 81 characters long. Not 80. Not "eh close enough". 81. Give the girl room to breathe. 😭

πŸ’œ DESCRIPTION πŸ’œ

So what does it actually do? It grabs the system model name straight out of the PDC ROM β€” think stuff like 9000/715 or 9000/778/B160L. Hardware name reveal, fr fr. πŸ”₯

And here's the cute part: if you pass OS_ID_HPUX, you get back the equivalent of what the modelname command gives you on HP/UX. Same energy, different OS. πŸ‘‘


🌈 SEE ALSO 🌈

Buckle up bestie, this list is LONG. The kernel file in question is ./arch/parisc/kernel/firmware.c, and here's the whole squad:

That's the whole group chat. All 60 of them. No cap. πŸ¦‹


Ngl, if you read all of those you deserve a little treat. πŸ“

And that's the page!! Sourced from ./arch/parisc/kernel, dated October 2026 β€” mwah, thanks for reading, ily, go read some more kernel docs bestie πŸ’–πŸ§šβ€β™€οΈβ­

πŸ“¦ where this page comes from