stm32_firewall_get_firewall(9)
πΈ stm32_firewall_get_firewall β Kernel API Manual πΈ
okay so bestie, you're looking at the kernel API manual page for stm32_firewall_get_firewall, and honestly? it's giving "let me introduce you to the firewalls" energy. it's a function that gets the firewall(s) associated to a given device, periodt π
β¨ NAME β¨
stm32_firewall_get_firewall β get the firewall(s) associated with a given device π₯
here's the tea on how the parsing works, and you literally cannot skip this part:
- the firewall controller reference is always the first argument of each of the access-controller property entries π₯
- the firewall ID is always the second argument of each of the access-controller property entries π₯
- if there's no argument linked to the phandle, then the firewall ID field is set to
U32_MAX, which is an invalid ID π (yeah, that's the "nobody's home" sentinel, don't come for me)
π¦ SYNOPSIS π¦
int stm32_firewall_get_firewall (struct device_node *np,
struct stm32_firewall *firewall,
unsigned int nb_firewall);
π ARGUMENTS π
npβ the device node to parse π³ this is the thing you're snooping through to find your firewallsfirewallβ array of firewall references π it's a whole little squad of them, not just onenb_firewallβ number of firewall references to get. Must be at least1. π no zero, no negative, we're not doing that here
π DESCRIPTION π
so what does it actually return? here's the vibe check:
- returns
0on success β slay, everything worked β¨ - returns
-ENODEVif there's no match with a firewall controller π rude but fair - or an appropriate errno code if some other error occurred π«Ά
that's literally it, bestie. it parses, it matches, it hands you back your firewall references. iconic behavior honestly.
quick reminder: nb_firewall must be at least 1 β that's not a suggestion, that's the rule π
π SEE ALSO π
- kernel file
./include/linux/bus/stm32_firewall_device.hπ struct stm32_firewall(9)stm32_firewall_grant_access(9)stm32_firewall_release_access(9)stm32_firewall_grant_access_by_id(9)stm32_firewall_release_access_by_id(9)stm32_firewall_get_grant_all_access(9)
go read those too, iykyk π
and that's a wrap, bestie! π this little masterpiece lives over in ./include/linux/bus, dated October 2026, and it's filed under stm32_firewall_get_firewall(9). mwah, go forth and get those firewalls π¦π
π¦ 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