scmi_devm_protocol_acquire(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay bestie, welcome to the Kernel API Manual page for scmi_devm_protocol_acquire(9) β€” the devres-managed helper that gets you hold of a protocol. ✨

✨ SYNOPSIS ✨

int scmi_devm_protocol_acquire (struct scmi_device *sdev , u8
       protocol_id );

πŸŽ€ ARGUMENTS πŸŽ€

  • sdev β€” a reference to an scmi_device whose embedded struct device is the one used for devres accounting. 🫢
  • protocol_id β€” the protocol being requested. πŸ’…

πŸ¦‹ DESCRIPTION πŸ¦‹

So this one gets you hold of a protocol and accounts for its usage. It may possibly trigger the protocol’s initialization, but it does not give you access to its protocol specific operations and handle. 😌

Because it’s a devres based managed method, the protocol hold will be automatically released β€” and possibly de-initialized on the last user β€” once the SCMI driver that owns the scmi_device is unbound from it. periodt. πŸ’«

πŸ’– RETURN πŸ’–

  • 0 on SUCCESS 🌟

πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./drivers/firmware/arm_scmi/driver.c β€” plus all these cross-reference besties, no cap:


πŸ’… kisses bestie β€” this page’s source spot is ./drivers/firmware/arm_scmi, the version vibe is scmi_devm_protocol_acquire(9), and it’s dated October 2026. mwah 🫢

πŸ“¦ where this page comes from