lsm_disk_rpm_get(3)
π 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
- fedora 43: libstoragemgmt-devel 1.10.3-1.fc43 Β· LGPL-2.1-or-later
- fedora 44: libstoragemgmt-devel 1.10.3-1.fc44 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms