lsm_capability_get(3)
π NAME π
lsm_capability_get β bestie, this is the little function that tells you whether a capability is a yes or a no. It retrieves the support status of specified capability. That's the whole job. She's simple, she's focused, she ate. β¨
π SYNOPSIS π
lsm_capability_value_type lsm_capability_get (lsm_storage_capabilities
*cap, lsm_capability_type t);
π¦ ARGUMENTS π¦
capβ Pointer oflsm_storage_capabilitiesto release. Yeah, that's what the docs say, okay? Hand her the pointer. π«Άtβ anlsm_capability_type. This is the capability you're asking about. Wanna know the deets on a specific one? Check the document of desired function for detail, because the lore lives over there. π
πΈ VERSION πΈ
1.0 β og era, still iconic, no cap. π
β¨ DESCRIPTION β¨
Retrieves the support status of specified capability.
That's it, that's the vibe. You pass in the capabilities blob and the capability you're curious about, and she comes back with the tea on whether it's supported or not. Main character energy, minimal plot. π
π RETURN π
She gives you back an lsm_capability_value_type. Possible values, and yes we're listing every single one because we don't skip: π
LSM_CAP_SUPPORTEDβ Capability is supported. Slay, it's a yes. π₯LSM_CAP_UNSUPPORTEDβ Capability is unsupported, or you handed her an invalidlsm_storage_capabilitiespointer, or yourlsm_capability_typewas invalid. Not me getting a three-for-one on the "no" answer. π So like, read carefully: unsupported and "your inputs were invalid" both land here, and you can't tell them apart from this return value alone. π
Real talk though: that second one covers unsupported capabilities and invalidlsm_storage_capabilitiespointers and invalidlsm_capability_typevalues. All three. Same value. No cap. π
Anyway bestie, that's the whole page. Go query some capabilities, you absolute legend. π§
Signed off with love from lsm_capability_get (3), sitting pretty in the Libstoragemgmt C API Manual, dated February 2026. π©·π
π¦ 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