zynqmp_pm_i..._scope_valid(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ zynqmp_pm_is_shutdown_scope_valid πŸ’…

okay so bestie, welcome to the Kernel API Manual β€” yes it's that part of the kernel, the Xilinx/ZynqMP firmware friend group πŸ¦‹. This one's a little helper that does a vibe check on a shutdown scope string for you. Let's get into it πŸŽ€


🌸 NAME 🌸

zynqmp_pm_is_shutdown_scope_valid β€” Check if shutdown scope string is valid ✨

Literally what it says on the tin, no cap.


🫢 SYNOPSIS 🫢

struct zynqmp_pm_shutdown_scope* zynqmp_pm_is_shutdown_scope_valid
(const char *scope_string );

That's the whole thing β€” hand it a string, get a struct pointer back (or not, we'll get there πŸ™ˆ).


πŸ’– ARGUMENTS πŸ’–

  • scope_string β€” the Shutdown scope string you want checked πŸ‘‘. Just the string, nothing fancy.

⭐ RETURN ⭐

If the string is valid, you get a pointer to the matching shutdown scope struct β€” and it's pulled straight from the array of available options in the system, iykyk πŸ’…. If the string is not valid? You get NULL. That's it, that's the whole mood 😭.

ngl a NULL here is your signal that the string did not pass the vibe check β€” handle it, bestie, don't just dereference it 🫢

🌈 SEE ALSO 🌈

okay this list is long long, but we don't skip, we don't summarize, we list every single one because that's the assignment πŸ’€βœ¨


and that's the page, bestie 🫢✨ this lil guy lives over in ./drivers/firmware/xilinx and the version is October 2026 β€” so yeah, mark your calendar, mwah πŸ’‹πŸŽ€πŸ’œ

πŸ“¦ where this page comes from