lsm_job_free(3)
β¨ lsm_job_free(3) β¨
okay bestie, welcome to lsm_job_free from the Libstoragemgmt C API Manual β this is the lil cleanup queen that takes your job's resources and yeets them into the void π
no cap, she's tiny but she's important.
π NAME π
lsm_job_free β frees the resources used by a job.
π¦ SYNOPSIS π¦
int lsm_job_free (lsm_connect *conn, char **job_id, lsm_flag flags);
πΈ ARGUMENTS πΈ
connβ a valid connection pointer, like fr, it has to actually point at a reallsm_connect. Don't be handing her nonsense.job_idβ a string, bestie. It's the job ID. Yes it's achar **, and yes that double pointer matters β hold that thought, the NOTE section is about to explain why πflagsβ reserved for future use, so you literally must passLSM_CLIENT_FLAG_RSVD. No freestyling. The future isn't here yet π
π VERSION π
1.0 β iconic, established, we stan a stable API π«Ά
π DESCRIPTION π
Frees the resources used by a job. That's the whole vibe. She takes the job's stuff, she cleans it up, she goes home. Main character energy in like three lines of code β¨
β NOTE β
listen up, this part is lowkey the most important bit: the memory used for the job id string will be freed during this call, andjob_idwill be set toNULL.
so do NOT go touching that job_id pointer afterwards, okay? she's gone. she's been freed. she is NULL now and that's on purpose π that's also why it's a char ** in the synopsis β she has to reach in and null it out for you.
π₯ RETURN π₯
She hands back an error code, as enumerated by lsm_error_number. The possibilities, bestie:
LSM_ERR_OKβ on success. slay, it worked πLSM_ERR_INVALID_ARGUMENTβ when any argument isNULL, orconnisn't a validlsm_connectpointer, or the flags are invalid. basically "girl what did you just pass me" πLSM_ERR_NOT_FOUND_JOBβ when the job isn't found. can't free what isn't there, bestie π
and that's the page!! this was the Libstoragemgmt C API Manual energy, dated February 2026, and lsm_job_free is still out here freeing job resources and nulling your pointers like the absolute queen she is π mwah, go forth and free 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