lsm_capability_get(3)

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

πŸ’– 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 of lsm_storage_capabilities to release. Yeah, that's what the docs say, okay? Hand her the pointer. 🫢
  • t β€” an lsm_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 invalid lsm_storage_capabilities pointer, or your lsm_capability_type was 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 invalid lsm_storage_capabilities pointers and invalid lsm_capability_type values. 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