atmel_hsmc_get_reg_layout(9)
π atmel_hsmc_get_reg_layout β like, the manual page, bestie π
okay so this is a page from the Kernel API Manual and honestly? it's a little one but she's important, so pay attention π
β¨ NAME β¨
atmel_hsmc_get_reg_layout β grab yourself the layout of HSMC registers. that's it. that's the whole job. π
πΈ SYNOPSIS πΈ
const struct atmel_hsmc_reg_layout * atmel_hsmc_get_reg_layout (struct
device_node *np );
like, you hand her a device node and she hands you back a const struct atmel_hsmc_reg_layout * β no cap π«Ά
π¦ ARGUMENTS π¦
npβ the HSMC regmap. that's the one thing she wants from you, bestie π
π DESCRIPTION π
Retrieve the layout of HSMC registers. simple, iconic, does what it says on the tin β¨
now here's the β¨vibe checkβ¨ on what actually comes back to you β and this part matters, so don't skim it, i'm serious π:
- Returns
NULLin case of SMC - Returns a
struct atmel_hsmc_reg_layoutpointer in the HSMC case - Otherwise? it's giving
ERR_PTR(-EINVAL)π
so yeah. three possible outcomes, and you will be checking which one you got. that's not a suggestion, that's main character energy for your error handling π₯
π SEE ALSO π
the whole friend group lives in the kernel file ./drivers/mfd/atmel-smc.c β go say hi to:
atmel_smc_cs_conf_init(9)atmel_smc_cs_encode_ncycles(9)atmel_smc_cs_conf_set_timing(9)atmel_smc_cs_conf_set_setup(9)atmel_smc_cs_conf_set_pulse(9)atmel_smc_cs_conf_set_cycle(9)atmel_smc_cs_conf_apply(9)atmel_hsmc_cs_conf_apply(9)atmel_smc_cs_conf_get(9)atmel_hsmc_cs_conf_get(9)
ngl this is a short one, but she ate. read the whole squad, iykyk π
and that's the tea, bestie π§ this page ships from ./drivers/mfd, dated October 2026, and it's filed under atmel_hsmc_get_reg_layout(9) β mwah, love u, go read your regmaps ππ
π
π¦ 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