atmel_smc_cs_conf_get(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… atmel_smc_cs_conf_get β€” the "bestie, gimme the current conf" function

Okay so this is from the Kernel API Manual (yes, the kernel has lore too, iykyk) and it's literally just one little function that reads back your SMC CS configuration. No cap, that's the whole vibe.


✨ SYNOPSIS ✨

void atmel_smc_cs_conf_get (struct regmap *regmap , int cs , struct
atmel_smc_cs_conf *conf );

It returns void, so like… nothing comes back out the return value. The magic happens through conf. πŸͺ„


πŸŽ€ ARGUMENTS πŸŽ€

  • regmap β€” the SMC regmap. That's your regmap handle, the little doorway into the SMC registers. πŸšͺ
  • cs β€” the CS id. Which chip select we're talking about, bestie. Pick your fave. πŸ‘‘
  • conf β€” the SMC CS conf object to store the current conf. This is the container it fills up. Main character energy fr. 🫢

🌸 DESCRIPTION 🌸

So basically you call this and it retrieves the SMC CS configuration β€” it reads the current conf out and tucks it into the object you passed in. That's it, that's the function. ✨

⚠️ Heads up bestie: this is only valid on at91sam9 SoCs. Like, do not try this on anything else, okay? Not me watching you use it on the wrong SoC. 😭

🌈 SEE ALSO 🌈

Kernel file ./drivers/mfd/atmel-smc.c β€” and the whole friend group:

All of them live in ./drivers/mfd together, cute little neighborhood, love that for them. πŸ‘πŸ’–


That's the whole page, periodt. πŸŽ€ This little gem is hanging out in ./drivers/mfd, dated October 2026, and yes it's all part of the Kernel API Manual. Go read the conf, bestie. Slay. πŸ’…βœ¨

πŸ“¦ where this page comes from