lsm_block..._count_get(3)
β¨ lsm_block_range_block_count_get(3) β¨
okay bestie, welcome to the Libstoragemgmt C API Manual π this one is a lil baby function but it's still iconic, so let's get into it π
π NAME π
lsm_block_range_block_count_get β retrieve the block count of the block range π¦
πΈ SYNOPSIS πΈ
uint64_t lsm_block_range_block_count_get (lsm_block_range *br);
β¨ ARGUMENTS β¨
brβ the block range you want the block count from, bestie π«Ά
π VERSION π
1.0 β yes she's been here since day one, a legacy icon fr fr π
π DESCRIPTION π
So like, this function retrieves the block count of the block range. That's the whole vibe. You hand her a block range, she hands you back the count. no cap, it's giving simple and effective π
β RETURN β
Returns a uint64_t π
- If your
lsm_block_rangepointer is invalid, you get0. That's the lowkey sad path π so please, bestie, don't pass her a bad pointer β do a vibe check on it first π
fr fr:0here means "invalid pointer", so if you're getting a0back, that's your sign to go look at what you passed in, not a sign that the range is empty π
that's the whole page, bestie, you ate it π§π
from the Libstoragemgmt C API Manual, version 1.0, dated February 2026 β mwah, see you in the next manpage πΈπβ¨
π¦ 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