ENUM SFH_MESSAGE_TYPE(9)
π 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 assignmentMT_ALSβ Message ID to know the Ambient light info from MP2 FW βοΈ ambient light data, slayMT_SRAβ Message ID to know the SRA data from MP2 FW π SRA data coming at you from the MP2 FWMT_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
- 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