stm32_firew...t_all_access(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay so bestie, stm32_firewall_get_grant_all_access β€” it's giving "do everything at once" energy ✨ Allocate and get all the firewall(s) associated to the given device, then try to grant access rights for each element. Basically it's a helper function that wraps both stm32_firewall_get_firewall() and stm32_firewall_grant_access() on all firewall references of a device, plus it allocates the array for you πŸŽ€ No cap, it's the shortcut. Realease access using stm32_firewall_release_access* APIs when done β€” don't leave it hanging, that's not the vibe πŸ’…


✨ SYNOPSIS ✨

int stm32_firewall_get_grant_all_access (struct device *dev , struct
stm32_firewall **firewall , int *nb_firewall );

🌸 ARGUMENTS 🌸

  • dev β€” the device that's performing the checks 🫢
  • firewall β€” pointer to the array of firewall references that's gonna get allocated 🌈
  • nb_firewall β€” number of allocated elements in firewall ⭐

πŸ¦‹ DESCRIPTION πŸ¦‹

Returns 0 on success, or the appropriate errno code if an error occurred. That's it, that's the whole plot 😭 Lowkey iconic for how short it is.

fr fr though β€” check that return value. 0 is the slay, anything else is the error code telling you what went wrong πŸ™ˆ

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./include/linux/bus/stm32_firewall_device.h and struct stm32_firewall(9), plus the whole friend group:


πŸ’œ and that's the whole page, bestie! this one lives in ./include/linux/bus, dated October 2026, from the Kernel API Manual β€” go off, go read the other firewall pages, they ate πŸ’…πŸ”₯πŸŽ€

πŸ“¦ where this page comes from