devm_acpm_get_by_phandle(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ devm_acpm_get_by_phandle(9) πŸŽ€

okay so bestie, welcome to the Kernel API Manual πŸ’– this one's a little lookup function from the Samsung ACPM firmware corner of the kernel, and honestly? it's giving "resource managed, so you literally can't mess it up" energy ✨


✨ NAME ✨

devm_acpm_get_by_phandle β€” resource managed lookup of the standardized "samsung,acpm-ipc" handle 🫢

like, you give it a device, it goes and finds the handle for you, and the devm part means the cleanup is handled so you don't have to think about it πŸ’… periodt


🌸 SYNOPSIS 🌸

struct acpm_handle * devm_acpm_get_by_phandle (struct device *dev );

no cap, that's the whole signature πŸ¦‹


πŸ’œ ARGUMENTS πŸ’œ

  • dev β€” the consumer device πŸ™ˆ that's it, that's the whole argument list, she's lowkey simple and we love her for it

⭐ RETURN ⭐

okay so what comes back:

  • a pointer to the handle on success πŸŽ‰ slay
  • ERR_PTR(-errno) otherwise 😭 so like, always check it with IS_ERR() before you go dereferencing things, iykyk
fr fr, "otherwise" means failure β€” treat that return value with respect or your kernel is gonna have a bad time πŸ’€

🌈 SEE ALSO 🌈

bestie this list is long, but every single one of these is iconic in her own right, so here we go:

the kernel file itself lives at ./drivers/firmware/samsung/exynos-acpm.c πŸ“ and these are all part of the fam:

like, the whole acpm cinematic universe πŸ”₯ go read them all, you're welcome 🧚


and that's the whole page bestie!! πŸ’– brought to you by ./drivers/firmware/samsung, dated October 2026 β€” mwah, go forth and look up handles responsibly πŸ‘‘βœ¨

πŸ“¦ where this page comes from