lsm_capab...supported(3)

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

πŸ’– lsm_capability_supported β€” checking if your capability is slaying or not πŸ’–

okay bestie, welcome to the Libstoragemgmt C API Manual β€” this one lives in section 3, so it's a library call, and the man page is literally called lsm_capab...supported(3) because apparently even man pages get abbreviated when they're too long, iconic honestly. πŸŽ€


🌸 NAME 🌸

lsm_capability_supported β€” check whether specified capability is supported.

like, does this thing do the thing? that's the whole vibe check. ✨


πŸ¦‹ SYNOPSIS πŸ¦‹

int lsm_capability_supported (lsm_storage_capabilities *cap,
lsm_capability_type t);

πŸ’… ARGUMENTS πŸ’…

  • cap β€” Pointer of lsm_storage_capabilities to release. yes fr, that's what the docs say β€” you hand over your capabilities pointer and it gets to sit there being pointed at. 🫢
  • t β€” an lsm_capability_type. This is the capability you're querying, bestie. Check the document of desired function for detail β€” iykyk, the details live over there. πŸ‘‘

⭐ VERSION ⭐

1.0

(yeah it's giving classic, it's giving vintage, it's giving day one icon) πŸ’–


🌈 DESCRIPTION 🌈

Retrieves the support status of specified capability.

that's it, that's the whole job. you ask "hey does this do the thing" and it tells you yes or no. main character energy from a function that literally just answers a yes/no question. obsessed. πŸ’œ


πŸ”₯ RETURN πŸ”₯

An int, and here's what those ints mean, no cap:

  • Non-zero β€” Capability is supported. πŸŽ‰ slay, she does the thing.
  • 0 β€” Capability is unsupported, or the lsm_storage_capabilities pointer is invalid, or the lsm_capability_type is invalid. πŸ’€ yeah so a zero is doing triple duty here β€” could be a legit "nope, not supported," could be you handed it garbage. be careful out there, bestie.
lowkey important: 0 is ambiguous on purpose per the original β€” unsupported capability, bad cap pointer, and bad t all collapse into the same 0. don't assume you know which one you got. πŸ™ˆ

that's the whole page, babe. short, sweet, does exactly one thing and does it well. periodt. πŸŽ€

signing off β€” this was lsm_capability_supported from the Libstoragemgmt C API Manual, page lsm_capab...supported(3), dated February 2026. go check your capabilities, they're probably fine. mwah. πŸ’‹

πŸ“¦ where this page comes from