ioctl_probe(9)
π ioctl_probe(9) β Kernel API Manual π
okay so bestie, welcome to ioctl_probe(9) β yes that's the man page name AND the vibe, we love a title that eats π this one lives in the Kernel API Manual and it's literally just here to tell you who your host is. identification era β¨
πΈ NAME πΈ
ioctl_probe β return host identification
like, it probes. it identifies. it's giving "who are you and what are you running on" π«Ά
β¨ SYNOPSIS β¨
int ioctl_probe (struct Scsi_Host *host , void __user *buffer );
copy it exactly bestie, spaces and all, no cap π₯
π¦ ARGUMENTS π¦
hostβ the host we're identifying, main character of the operation πbufferβ a userspace buffer where the identification string is gonna live π
π RETURN π
- if it slays (successful), you get
1back, plus an identifying string placed atbufferβ but only ifbufferis non-NULL, and it fills up to the length stored at* (int *) buffer. yes, the length is hiding inside the buffer itself, iconic honestly π <0β an error code on failure, boo π
ngl bestie, always check that return value. <0 means it did NOT pass the vibe check π
π SEE ALSO π
Kernel file ./drivers/scsi/scsi_ioctl.c, plus the whole friend group:
scsi_set_medium_removal(9)scsi_cmd_allowed(9)sg_scsi_ioctl(9)scsi_ioctl(9)scsi_ioctl_block_when_processing_errors(9)
and that's the whole page, no skips, no cuts π«Ά it lives in ./drivers/scsi, dated October 2026, and it's still called ioctl_probe(9) β periodt. go off, kernel bestie πβ¨
π¦ 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