iscsi_sw_sk_state_check(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🫢 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:


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