lsm_block...ecord_copy(3)

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

🌸 NAME 🌸

lsm_block_range_record_copy β€” bestie, this one literally makes a whole duplicate of a block_range record. πŸ’–

Oh and hey, welcome to the Libstoragemgmt C API Manual β€” that's the vibe we're in rn. ✨


πŸŽ€ SYNOPSIS πŸŽ€

lsm_block_range  * lsm_block_range_record_copy (lsm_block_range
*source);

πŸ¦‹ ARGUMENTS πŸ¦‹

  • source β€” a pointer to the lsm_block_range you want duplicated. That's it, that's the whole input. Give it the thing, get back a copy. 🫢

⭐ VERSION ⭐

1.0 β€” yeah she's been around, she's iconic, she's stable. πŸ’…


πŸ’œ DESCRIPTION πŸ’œ

So basically, lsm_block_range_record_copy duplicates a lsm_block_range record. You hand it a source, it hands you back a twin. Copy-paste energy but, like, official. πŸ”₯


🌈 RETURN 🌈

You get back a pointer to an lsm_block_range. But heads up β€” it returns NULL if memory allocation fails, or if you passed in an invalid lsm_block_range pointer. 😭

Also, and this is the important part, bestie: the thing it gives you should be freed by lsm_block_range_record_free. Do not ghost that cleanup, fr fr. 🧹✨

That's the whole page, gorgeous. It came from the Libstoragemgmt C API Manual, dated February 2026. Now go forth and free your records. πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from