iscsi_sw_sk_state_check(9)
π«Ά iscsi_sw_sk_state_check β a Kernel API Manual moment π«Ά
okay so bestie, this page is from the Kernel API Manual and it's all about one little function called iscsi_sw_sk_state_check. She's not here to be flashy, she's here to do her job flawlessly πβ¨
π NAME π
iscsi_sw_sk_state_check β check socket state. That's the whole assignment, and she ate π
π SYNOPSIS π
int iscsi_sw_sk_state_check (struct sock *sk );
πΈ ARGUMENTS πΈ
skβ a socket π¦ that's literally the only thing she needs from you, bestie
π DESCRIPTION π
okay so here's the tea β β if the socket is in CLOSE or CLOSE_WAIT, we should not close the connection if there is still some data pending. like, don't be out here rushing the goodbye when there's still data in the group chat πβ lowkey rude, honestly.
β real talk: this must be called with sk_callback_lock. Not a suggestion, not a vibe, it's the rule. no cap π§
π₯ SEE ALSO π₯
kernel file ./drivers/scsi/iscsi_tcp.c, plus this whole squad of related functions that you should absolutely go look at:
iscsi_sw_tcp_recv(9)iscsi_sw_tcp_write_space(9)iscsi_sw_tcp_xmit_segment(9)iscsi_sw_tcp_xmit(9)iscsi_sw_tcp_xmit_qlen(9)
and that's the whole page, bestie π she lives in ./drivers/scsi, she's dated October 2026, and she's out here being iscsi_sw_sk_state_check(9) β iconic behavior only, 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