scsi_device_is_pseudo_dev(9)
π scsi_device_is_pseudo_dev β¨
Okay so bestie, welcome to the scsi_device_is_pseudo_dev(9) page β this is from the Kernel API Manual, and it's literally a whole vibe check for SCSI devices π¦
π SYNOPSIS π
bool scsi_device_is_pseudo_dev (struct scsi_device *sdev );
πΈ ARGUMENTS πΈ
sdevβ the SCSI device you want to examine, bestie. Like, this is the one you're putting under the microscope π
β¨ DESCRIPTION β¨
So here's the tea β β a pseudo SCSI device can be used to allocate SCSI commands, but it does not show up in sysfs. Ngl, it's kind of giving invisible main character energy π
Also, heads up: the logical unit information in *sdev is made up. Fake. Fabricated. Not real. π
This function tests the LUN number instead of comparing sdev with sdev->host->pseudo_sdev, because β plot twist β this function may be called before sdev->host->pseudo_sdev has been initialized. So yeah, it can't do the comparison, it's not available yet, periodt π
π¦ SEE ALSO π¦
- Kernel file
./include/scsi/scsi_device.h struct scsi_vpd(9)shost_for_each_device(9)__shost_for_each_device(9)scsi_device_supports_vpd(9)
And that's the whole page, bestie! π«Ά Sending you so much love from ./include/scsi β this one's dated October 2026, brought to you by the Kernel API Manual β¨ You got this, go slay those pseudo devices ππ
π¦ 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