target_stop_cmd_counter(9)
π target_stop_cmd_counter(9) β a Kernel API Manual moment
Okay so bestie, welcome to the kernel API manual, and specifically to target_stop_cmd_counter(9) β the tiny little function that hits the brakes. π
β¨ NAME β¨
target_stop_cmd_counter β stop new IO from being added to the counter.
Like, no new IO, bestie. The counter's closed for business. π
πΈ SYNOPSIS πΈ
void target_stop_cmd_counter (struct target_cmd_counter *cmd_cnt );
That's it. That's the whole signature. Void return, one pointer, absolutely no drama. π«Ά
π ARGUMENTS π
cmd_cntβ the counter to stop. Yep, that's the one you're shutting down. Hand it over and it stops accepting new IO. Iconic, honestly. β¨
π¦ SEE ALSO π¦
Kernel file ./drivers/target/target_core_transport.c β that's where the magic lives, go look, iykyk. π
And the whole friend group, because this function does not exist in a vacuum:
transport_init_session(9)transport_alloc_session(9)transport_alloc_session_tags(9)transport_init_session_tags(9)target_cmd_size_check(9)target_init_cmd(9)target_submit_prep(9)target_submit_cmd(9)target_queue_submission(9)target_submit(9)target_submit_tmr(9)target_get_sess_cmd(9)target_put_sess_cmd(9)target_stop_session(9)target_wait_for_cmds(9)target_wait_for_sess_cmds(9)transport_wait_for_tasks(9)translate_sense_reason(9)target_send_busy(9)
That's the whole squad, fr fr. π
π Real talk though: this page is like three lines of docs and twenty lines of SEE ALSO. The main character energy is doing a lot of heavy lifting here. Not me complaining, just saying. π
So that's the tea, bestie β target_stop_cmd_counter(9) stops new IO from being added to the counter, and that is genuinely all it does. Go forth and stop those counters. You're gonna slay. π
Signing off from ./drivers/target, dated October 2026, living in this Kernel API Manual era. π Catch you in the next one! π
π¦ 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