soc_attr_read_machine(9)
β¨ NAME β¨
soc_attr_read_machine β bestie, this is the little function that goes and grabs the machine model and tucks it safely into the soc_device_attribute structure π
Like, it literally reads the machine model and stores it in the soc_device_attribute structure. That's the whole vibe. Periodt.
πΈ SYNOPSIS πΈ
int soc_attr_read_machine (struct soc_device_attribute *soc_dev_attr );
Okay so it returns an int, takes exactly one argument, and yes the spacing in the original is exactly like that β we keep it iconic and untouched π
π¦ ARGUMENTS π¦
soc_dev_attrβ the SoC attribute structure where the model is gonna live. It's giving "designated storage spot" energy, and honestly? She's the main character of this whole function. π
β RETURN β
0on success β slay, it worked, we ate π- negative error number on failure β not me crying in errno π
fr fr, anything negative means something went sideways. Keep an eye on it, bestie.
π SEE ALSO π
- Kernel file
./include/linux/sys_soc.hβ the header, the source of truth, the blueprint π§ soc_device_register(9)soc_device_unregister(9)soc_device_to_device(9)
iykyk β if you're poking at SoC devices you're gonna meet all of these cuties eventually π
and that's the whole page, no cap π«Ά This little gem lives in the Kernel API Manual, comes from ./include/linux (the source, the origin, the mothership π), and it's dated October 2026 β future vibes only, 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