lsm_syste...he_pct_get(3)
π lsm_system_read_cache_pct_get β bestie, let's read a cache percentage π
okay so this one lives in the Libstoragemgmt C API Manual (the C API, yes, we're being β¨seriousβ¨ today) and it's literally just vibes + one function. it asks your system "hey girl, what's your read cache percentage?" and the system answers. that's it. that's the whole page. but we're gonna do it right. π
πΈ NAME πΈ
lsm_system_read_cache_pct_get β retrieves the read cache percentage of the system. no cap, that's the whole job description.
β¨ SYNOPSIS β¨
int lsm_system_read_cache_pct_get (lsm_system *s);
one function, one argument, one int coming back at you. she's lowkey minimal and we respect that π«Ά
π ARGUMENTS π
sβ the system you want the read cache percentage for. like, hand her the system, she hands you the number. this is the one and only input, so don't be out here passing random stuff π
π VERSION π
1.3 β vintage but iconic, honestly. this page has main character energy from an earlier era and we're obsessed. π
π¦ DESCRIPTION π¦
retrieves the read cache percentage of the specified system. that's the tea. β you give it the system (the s from up there β¬οΈ), it gives you back the read cache percentage. very "tell me what I need to know and nothing else" of her. periodt.
β CAPABILITY β
LSM_CAP_SYS_READ_CACHE_PCT_GET
this is the capability flag that has to be in the mix for this function to be a thing on your system. it's giving "membership card" β no flag, no percentage. iykyk. β¨
π RETURN π
it returns an int. and the possible values are, in the group chat:
>=0and<= 100β success! slay! you got a real percentage, it's a number, it's in range, we love her. πLSM_SYSTEM_READ_CACHE_PCT_NO_SUPPORTβ no support. the system was like "bestie I don't do that" π not every system has this feature and that's okay, no hard feelings.LSM_SYSTEM_READ_CACHE_PCT_UNKNOWNβ the system pointer isNULLor there's a bug. so either you passed nothing at all, or something is genuinely cursed. π check your pointer first, fr fr.
real talk: if you're gettingLSM_SYSTEM_READ_CACHE_PCT_UNKNOWN, it's not a "hehe oops" moment β the docs literally say the system pointer isNULLor there's a bug. so double-check thatsis actually a thing before you go blaming the library. π
and that's the whole page, bestie! this was the Libstoragemgmt C API Manual page for lsm_system_read_cache_pct_get, version 1.3, dated February 2026. thank you for coming to my ted talk, go forth and read those cache percentages responsibly π§ππΈ
π¦ 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