lsm_syste...he_pct_get(3)

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

πŸ’– 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:

  • >=0 and <= 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 is NULL or 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 getting LSM_SYSTEM_READ_CACHE_PCT_UNKNOWN, it's not a "hehe oops" moment β€” the docs literally say the system pointer is NULL or there's a bug. so double-check that s is 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