stm32_firewall_get_firewall(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 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 firewalls
  • firewall β€” array of firewall references πŸ’– it's a whole little squad of them, not just one
  • nb_firewall β€” number of firewall references to get. Must be at least 1. πŸ‘‘ no zero, no negative, we're not doing that here

πŸ’œ DESCRIPTION πŸ’œ

so what does it actually return? here's the vibe check:

  • returns 0 on success β€” slay, everything worked ✨
  • returns -ENODEV if 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 🌈

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