ENUM SFH_MESSAGE_TYPE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… enum sfh_message_type(9) β€” from the Kernel API Manual, bestie πŸŽ€

okay so real talk, this is a kernel API manual page and it's literally all about querying the SFH message type ✨ ngl it's short but it's iconic and we're gonna get into it 🫢


πŸ¦‹ NAME πŸ¦‹

enum sfh_message_type β€” the one that lets you query the SFH message type, periodt πŸ’…


✨ SYNOPSIS ✨

like, here's the whole enum, no cap, exactly as it is:

enum sfh_message_type {
    MT_HPD ,
    MT_ALS ,
    MT_SRA ,
    MT_OP_MODE

};

that's it, that's the vibe 🌸


πŸŽ€ Constants πŸŽ€

these are the four constants and honestly each one is doing its own main character thing πŸ‘‘

  • MT_HPD β€” Message ID to know the Human presence info from MP2 FW πŸ’– like, is a human there or not, that's the whole assignment
  • MT_ALS β€” Message ID to know the Ambient light info from MP2 FW β˜€οΈ ambient light data, slay
  • MT_SRA β€” Message ID to know the SRA data from MP2 FW πŸ“Š SRA data coming at you from the MP2 FW
  • MT_OP_MODE β€” Message ID to know the operating-mode (tablet/laptop) info πŸ’» so like, tablet or laptop, which one are we, iykyk

🌈 SEE ALSO 🌈

go look at these too bestie, they're all in the kernel file ./include/linux/amd-pmf-io.h 🧚

  • enum sfh_hpd_info(9)
  • struct amd_sfh_info(9)
  • enum sfh_dev_mode(9)
  • struct amd_pmf_npu_metrics(9)

ngl that's the whole page πŸ’€ short and sweet, but every single detail is there, fr fr. go read the other ones too, they're lowkey obsessed with you 🫢

okay bye bestie!! this page came from ./include/linux and it's dated October 2026 ⭐ so like, remember it's old but it ate πŸ’…βœ¨πŸŽ€

πŸ“¦ where this page comes from