scsi_eh_lock_door(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

hey bestie, welcome to the scsi_eh_lock_door(9) page from the Kernel API Manual πŸ’– this one is short, but it's doing important door-locking business, so let's get into it.

✨ NAME ✨

scsi_eh_lock_door β€” prevent medium removal for the specified device. literally the β€œplease don’t take the medium out” guy 🫢

🌸 SYNOPSIS 🌸

void scsi_eh_lock_door (struct scsi_device *sdev );

πŸŽ€ ARGUMENTS πŸŽ€

  • sdev β€” SCSI device to prevent medium removal. that's the device we're locking the door for, no cap.

πŸ’… DESCRIPTION πŸ’…

Locking: we must be called from process context. that's the whole rule, bestie β€” process context only, periodt.

πŸ¦‹ NOTES πŸ¦‹

so here's the tea: we queue up an asynchronous "ALLOW MEDIUM REMOVAL" request on the head of the devices request queue, and continue. highkey iconic async behavior, we are not waiting around for it.

πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./drivers/scsi/scsi_error.c plus the whole bestie squad:


that's the page, bestie 🫢 source/version: ./drivers/scsi; date: October 2026; page: scsi_eh_lock_door(9). now go forth and lock that door πŸ’…βœ¨

πŸ“¦ where this page comes from