sdev_evt_send(9)
π sdev_evt_send β Kernel API Manual β¨
okay bestie, welcome to sdev_evt_send(9), one of those tiny functions that does exactly one thing and does it in the background while you're not looking. it's giving "quietly competent" energy and honestly? we love that for it. π«Ά
πΈ NAME πΈ
sdev_evt_send β send asserted event to uevent thread
like, you assert an event, you hand it to this function, and the uevent thread deals with it. teamwork, but make it kernel. π
π SYNOPSIS π
void sdev_evt_send (struct scsi_device *sdev , struct scsi_event *evt );
notice it returns void, so no take-backs, no status code, no "did it work tho" β it's a one-way vibe. β¨
π¦ ARGUMENTS π¦
sdevβ thescsi_devicethat the event happened on. this is the main character of the situation, the device that's out here having things occur to it. πevtβ the event you're sending. this is the lil payload you're handing over. π
π DESCRIPTION π
assert a scsi device event asynchronously, bestie. asynchronously!! no cap, that means it doesn't block around waiting for the uevent thread to finish doing its thing β it just asserts the event and moves on with its life. lowkey iconic. π₯
β SEE ALSO β
okay so this is the part where the kernel goes "here's everyone in my contacts list," and there are forty of them, so buckle up, bestie. π§
kernel file ./drivers/scsi/scsi_lib.c β that's where the squad lives:
__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_alloc(9)sdev_evt_send_simple(9)scsi_device_quiesce(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)
like I said. forty. i counted. you're welcome. π
ngl if you're reading this becausesdev_evt_alloc(9)andsdev_evt_send_simple(9)showed up in your grep, you're already in the right friend group. π
and that's the page!! this one lives in ./drivers/scsi, dated October 2026, and it's part of the Kernel API Manual β the same gorgeous manual that brought you sdev_evt_send(9) right here at the top. go forth and assert your events asynchronously, bestie. slay. ππΈ
π¦ 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