scsi_device_quiesce(9)
π scsi_device_quiesce β the Kernel API Manual one, bestie
okay so this is scsi_device_quiesce(9), and it lives in the Kernel API Manual section, and honestly? it's giving "bouncer at the club door" energy and we're obsessed π
β¨ NAME β¨
scsi_device_quiesce β block all commands except power management. that's it, that's the whole vibe π
π¦ SYNOPSIS π¦
int scsi_device_quiesce (struct scsi_device *sdev );
πΈ ARGUMENTS πΈ
sdevβ the scsi device you're about to quiesce. like, the main character of this whole operation π«Ά
π DESCRIPTION π
so the way this works is it tries to transition the device into the SDEV_QUIESCE state, and heads up β that transition has to be a legal transition, no cap. if it's not legal, it's not happening bestie π
once the device is chilling in that state, only power management requests get accepted. everything else gets deferred. not rejected, not destroyed, just deferred β put on hold, sitting in the waiting room with a little number ποΈβ¨
β οΈ okay this part is important so read it twice: it must be called with user context, and it may sleep. yes, sleep. it's allowed to nap mid-call. do not call this from a context where sleeping is illegal, i am literally begging π
returns zero if it worked out, or an error if not. simple as that π
π₯ SEE ALSO π₯
kernel file ./drivers/scsi/scsi_lib.c β and then the whole friend group, say hi to everybody:
__scsi_queue_insert(9), scsi_queue_insert(9), scsi_failures_reset_retries(9), scsi_check_passthrough(9), scsi_execute_cmd(9), scsi_run_queue(9), scsi_result_to_blk_status(9), scsi_rq_err_bytes(9), scsi_io_completion(9), scsi_alloc_sgtables(9), scsi_initialize_rq(9), scsi_alloc_request(9), scsi_dispatch_cmd(9), scsi_get_internal_cmd(9), scsi_put_internal_cmd(9), scsi_device_from_queue(9), scsi_block_requests(9), scsi_unblock_requests(9), scsi_mode_select(9), scsi_mode_sense(9), scsi_test_unit_ready(9), scsi_device_set_state(9), scsi_evt_emit(9), scsi_evt_thread(9), sdev_evt_send(9), sdev_evt_alloc(9), sdev_evt_send_simple(9), scsi_device_resume(9), scsi_internal_device_block_nowait(9), scsi_device_block(9), scsi_internal_device_unblock_nowait(9), scsi_internal_device_unblock(9), scsi_block_targets(9), scsi_host_block(9), scsi_kmap_atomic_sg(9), scsi_kunmap_atomic_sg(9), scsi_vpd_lun_id(9), scsi_vpd_lun_serial(9), scsi_vpd_tpg_id(9), scsi_build_sense(9) π
and that's the page!! sourced from ./drivers/scsi, dated October 2026 β screenshot it, cite it, put it on your fridge, it's iconic periodt πβ¨ππ¦
π¦ 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