lsm_acces...rray_free(3)
β¨ lsm_access_group_record_array_free(3) β¨
okay bestie, we're in the Libstoragemgmt C API Manual today and this one is literally a lil cleanup queen π she frees the memory of an access group array. no cap, that's the whole job.
πΈ NAME πΈ
lsm_access_group_record_array_free β Frees the memory of access group array.
π SYNOPSIS π
int lsm_access_group_record_array_free (lsm_access_group *ag[], uint32_t
size);
π¦ ARGUMENTS π¦
ag[]β the Array to release memory for. like, the whole squad of access groups that needs to go bye-bye πsizeβ the Number of elements. how many besties are in that array, fr fr.
β VERSION β
1.0 β iconic, vintage, a classic π«Ά
π DESCRIPTION π
the way this function works is so satisfying honestly. it frees the memory for each of the access groups one by one, and then it frees the access group array itself. deep clean, top to bottom, no crumbs left behind. it's giving main character energy of memory management β¨
π RETURN π
returns an Error code as enumerated by lsm_error_number:
LSM_ERR_OKβ On success or not found. slay, everything's fine, we move πLSM_ERR_INVALID_ARGUMENTβ When any argument is NULL or not a valid lsm_access_group pointer. so if you passed something sus, this is what you get π
lowkey important: if any argument isNULLor isn't a reallsm_access_grouppointer, that'sLSM_ERR_INVALID_ARGUMENT. don't do that bestie π
and that's the whole page!! Libstoragemgmt C API Manual, version 1.0, February 2026 β thanks for coming to my ted talk, go free your arrays responsibly π§π
π¦ 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