ioctl_probe(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 1 back, plus an identifying string placed at buffer β€” but only if buffer is 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:


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