lsm_job_free(3)

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

✨ 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 real lsm_connect. Don't be handing her nonsense.
  • job_id β€” a string, bestie. It's the job ID. Yes it's a char **, 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 pass LSM_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, and job_id will be set to NULL.

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 is NULL, or conn isn't a valid lsm_connect pointer, 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