lsm_local...d83_search(3)
π lsm_local_disk_vpd83_search β bestie edition π
ok so this is a page from the Libstoragemgmt C API Manual (section 3, the library-calls girlies), and the function we're obsessing over today is lsm_local_disk_vpd83_search. it lives in lsm_local...d83_search(3) which is just the header being dramatic and truncating itself. anyway. let's get into it β¨
β¨ NAME β¨
lsm_local_disk_vpd83_search β search disks by VPD83 string. that's it. that's the whole job. she finds disks. π
πΈ SYNOPSIS πΈ
int lsm_local_disk_vpd83_search (const char *vpd83, lsm_string_list
**disk_path_list, lsm_error **lsm_err);
look at her. three args, one int return, no notes. π
π ARGUMENTS π
vpd83β aString. it's the SCSI VPD 0x83 page NAA type ID, so like, the β¨identityβ¨ of the disk you're hunting for. ngl this is the main character of the whole function.disk_path_listβ an output pointer oflsm_string_list. the format of the disk path is gonna look like"/dev/sdb"for SCSI or ATA disks β very demure, very classic. it'sNULLif nothing was found or if something errored out π. also!! the memory here should be freed bylsm_string_list_free. do not forget. i will know.lsm_errβ an output pointer oflsm_error. you can pull the error message out withlsm_error_message_get, and the memory should be freed bylsm_error_free. free her!! π«Ά
π¦ VERSION π¦
1.3
π DESCRIPTION π
so what she actually does: she searches all the disk paths for the specified SCSI VPD 0x83 page NAA type ID. every single one. no cap.
and here's the slay part β for any ATA and other non-SCSI protocol disks that support VPD 0x83 pages NAA ID, their disk path gets included too. so she's inclusive. she doesn't gatekeep. we love that for her. π
β RETURN β
error code, as enumerated by lsm_error_number. here's the full menu, bestie:
LSM_ERR_OKβ on success or not found. yes, "not found" is still okay. she's chill like that.LSM_ERR_INVALID_ARGUMENTβ when any argument isNULL. don't hand her nothing and expect magic. πLSM_ERR_NO_MEMORYβ when no memory. the tragedy.LSM_ERR_LIB_BUGβ when something unexpected happens. aka the "girl what" error. π
lowkey reminder: thatdisk_path_listmemory is yours to free withlsm_string_list_free, and the error memory is yours withlsm_error_free. periodt.
and that's the whole page!! this lil manual page was served up by the Libstoragemgmt C API Manual crew, dated February 2026, filed under lsm_local...d83_search(3). mwah, go search some disks π
β¨
π¦ 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