aspeed_sig_desc_eval(9)
π aspeed_sig_desc_eval(9) β the Kernel API Manual, bestie edition π
okay so this is a page from the Kernel API Manual and it's literally about checking whether a signal descriptor is on or off. yes bestie, we're in the pinctrl trenches today π¦
β¨ NAME β¨
aspeed_sig_desc_eval β query the enabled or disabled state of a signal descriptor π«
πΈ SYNOPSIS πΈ
int aspeed_sig_desc_eval (const struct aspeed_sig_desc *desc , bool
enabled , struct regmap *map );
so iconic. so small. so much power π«Ά
π ARGUMENTS π
descβ the signal descriptor of interest, aka the main character of this whole operation πenabledβ passtrueto query the enabled state,falseto query the disabled state. it's giving "two vibes, one flag" πmapβ the IP block'sregmapinstance. that's the plug, the connection, the whole infrastructure ngl π
β RETURN β
ok so here's the vibe check on the return value:
1if the descriptor's bitfield is configured to the state selected byenabledβ0if not π- less than zero if an unrecoverable failure occurred ππ
periodt. that's the whole range.
π₯ DESCRIPTION π₯
so like, evaluating descriptor state is non-trivial, and here's why: it's not a binary outcome. not me finding out it's not just on/off π
the bitfields can be greater than one bit in size, which means they can take a value that is neither the enabled nor the disabled state recorded in the descriptor. typically, this means a different function than the one of interest is enabled β so like, something is on, just not the thing you asked about π§
because of that, we must explicitly test for either condition as required. no assumptions, no shortcuts, we check both states properly. lowkey obsessed with how thorough that is π
π¦ SEE ALSO π¦
- Kernel file
./drivers/pinctrl/aspeed/pinmux-aspeed.cπ aspeed_sig_expr_eval(9)π
and that's the page!! go forth and evaluate your signal descriptors, bestie π
this masterpiece of a manual page comes to you from ./drivers/pinctrl/aspeed, dated October 2026 β drink water, read your kernel source, and slay π
β¨ππ
π¦ 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