lsm_disk_rpm_get(3)

πŸ“¦
version 1.10.3 Β· 3 versions
, in fedora 43, fedora 44

πŸ’– lsm_disk_rpm_get(3) πŸ’–

okay bestie, so this one lives in the Libstoragemgmt C API Manual and it's literally the cutest little function β€” it just tells you how fast your disk is spinning. that's it. that's the whole job. πŸŒ€


✨ NAME ✨

lsm_disk_rpm_get β€” retrieves the rotation speed for the disk.

like... the RPM. revolutions per minute. the spin rate. the whole vibe of how fast it's twirling. πŸŽ€


✨ SYNOPSIS ✨

int32_t lsm_disk_rpm_get (lsm_disk *d);

✨ ARGUMENTS ✨

  • d β€” the disk you want the rotation speed for. that's your girl. hand her over. 🫢

✨ VERSION ✨

1.3 β€” yes, this has been iconic since 1.3, no notes. πŸ’…


✨ DESCRIPTION ✨

so basically, this function retrieves the disk rotation speed β€” measured in revolutions per minute, aka RPM. that's the number of full spins per minute. very demure, very rotational. 🌸


✨ CAPABILITY ✨

LSM_CAP_DISK_RPM

that's the capability flag gating this whole thing. if the plugin doesn't have it, we're not getting a number, periodt. πŸ‘‘


✨ RETURN ✨

returns an int32_t, and it's the disk rotation speed. here's the full rundown of what that number could actually be, and no, we are not skipping any of them:

  • >1 β€” a normal rotational disk. she spins. she's a hard drive doing hard drive things. πŸ”₯
  • LSM_DISK_RPM_NO_SUPPORT β€” the plugin just doesn't support this. not our fault, not your fault. πŸ’€
  • LSM_DISK_RPM_NON_ROTATING_MEDIUM β€” non-rotating medium (e.g., SSD). no spinning, no moving parts, just silent main character energy. ✨
  • LSM_DISK_RPM_ROTATING_UNKNOWN_SPEED β€” rotational disk, but the speed is unknown. she's spinning and she's keeping secrets. πŸ™ˆ
  • LSM_DISK_RPM_UNKNOWN β€” bug, or invalid argument, or just not supported. the chaotic one. πŸ¦‹
ngl bestie, watch out for that last one β€” LSM_DISK_RPM_UNKNOWN can straight up mean a bug, an invalid argument, or unsupported. it's the "something's off but we're not telling you what" of return values. 😭

that's the whole page, fr fr. stay spun, stay slay. πŸŒˆπŸ’œ

β€” signing off from the Libstoragemgmt C API Manual, page lsm_disk_rpm_get(3), version 1.3, dated February 2026. mwah. πŸŽ€

πŸ“¦ where this page comes from