lsm_acces...rray_free(3)

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

✨ 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 is NULL or isn't a real lsm_access_group pointer, that's LSM_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