lsm_capab...supported(3)
π 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 oflsm_storage_capabilitiesto 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β anlsm_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 thelsm_storage_capabilitiespointer is invalid, or thelsm_capability_typeis 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:0is ambiguous on purpose per the original β unsupported capability, badcappointer, and badtall collapse into the same0. 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
- 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