smsm_get_size_info(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 smsm_get_size_info 🌸

okay bestie, welcome to the Kernel API Manual, where we're decoding smsm_get_size_info(9) and honestly it's giving β€œsmall function, important little mission” energy πŸŽ€

✨ NAME ✨

smsm_get_size_info β€” parse the optional memory segment for sizes. periodt πŸ’…

πŸ’– SYNOPSIS πŸ’–

int smsm_get_size_info (struct qcom_smsm *smsm );

πŸŽ€ ARGUMENTS πŸŽ€

  • smsm β€” the smsm driver context. That's it, that's the whole argument, and she's iconic 🫢

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so the way that this works: it attempts to acquire the number of hosts and entries from the optional shared memory location. Not being able to find this segment should indicate that we're on a older system where these values was hard coded to SMSM_DEFAULT_NUM_ENTRIES and SMSM_DEFAULT_NUM_HOSTS.

Returns 0 on success, negative errno on failure. no cap, fr fr 😭

🌈 SEE ALSO 🌈

Kernel file ./drivers/soc/qcom/smsm.c, plus these besties:


cute little sign-off: sourced from ./drivers/soc/qcom, October 2026 edition β€” mwah, love u, bye πŸ’‹βœ¨

πŸ“¦ where this page comes from