scsi_inq_str(9)
π scsi_inq_str β NAME
ok so picture this: scsi_inq_str is the little function that prints INQUIRY data from min to max index, and strips the trailing whitespace bestie. it's giving tidy-up icon energy β¨ (this one lives in the Kernel API Manual, fyi π«Ά)
β¨ SYNOPSIS β¨
unsigned char * scsi_inq_str (unsigned char *buf , unsigned char *inq ,
unsigned first , unsigned end );
like, that's the whole vibe. four args, returns a unsigned char *. slay π
π ARGUMENTS π
okay let's meet the cast π
bufβ your output buffer, and it needs at leastend-first+1bytes of space. no cap, size it right or it's gonna be a whole situation πinqβ the Inquiry buffer (input). this is where the data's coming from π¦firstβ the offset of the string intoinq. like where we start, bestie πendβ the index after the last character ininq. yes, after β it's that kind of party π
π SEE ALSO π
if you're obsessed (and you should be), go read the kernel file ./drivers/scsi/scsi_scan.c β it's the main character of this whole story π
and then there's the extended universe, fr fr:
scsi_complete_async_scans(9)scsi_unlock_floptical(9)scsi_alloc_sdev(9)scsi_target_reap_ref_release(9)scsi_alloc_target(9)scsi_target_reap(9)scsi_sanitize_inquiry_string(9)scsi_probe_lun(9)scsi_add_lun(9)scsi_probe_and_add_lun(9)scsi_sequential_lun_scan(9)scsi_report_lun_scan(9)scsi_add_device(9)scsi_scan_target(9)scsi_prep_async_scan(9)scsi_finish_async_scan(9)scsi_scan_host(9)scsi_get_pseudo_sdev(9)
eighteen icons. read them all. iykyk π
ngl this whole page came straight outta ./drivers/scsi, dated October 2026 β so when you cite me, cite the source, periodt πΈ
ok bye bestie, go strip some whitespace, you're gonna ate ππ§β
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms