target_submit_tmr(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ target_submit_tmr(9) πŸŽ€

okay so bestie, welcome to the Kernel API Manual β€” this one is target_submit_tmr(9) and it's literally the glow-up moment where an uninitialized se_cmd becomes a real TMR submission. it looks up the unpacked lun, then submits. periodt. πŸ’…


✨ NAME ✨

target_submit_tmr β€” the function that does the lookup of the unpacked lun and submits the uninitialized se_cmd for TMR CDBs πŸ¦‹

like, one stop shop. no cap.


🌸 SYNOPSIS 🌸

int target_submit_tmr (struct se_cmd *se_cmd , struct se_session
*se_sess , unsigned char *sense , u64 unpacked_lun , void
*fabric_tmr_ptr , unsigned char tm_type , gfp_t gfp , u64 tag , int
flags );

it returns an int, bestie. nine whole arguments. she's high-maintenance but she's worth it πŸ’œ


🫢 ARGUMENTS 🫢

here's the full cast β€” every single one of them, no skips:

  • se_cmd β€” the command descriptor you're submitting. this is the main character ✨
  • se_sess β€” the associated se_sess for the endpoint 🌈
  • sense β€” pointer to the SCSI sense buffer, iykyk πŸ‘€
  • unpacked_lun β€” the unpacked LUN that gets referenced for struct se_lun πŸŽ€
  • fabric_tmr_ptr β€” the fabric context for the TMR req, very fabric of our lives of it 🧚
  • tm_type β€” the Type of TM request πŸ’«
  • gfp β€” gfp type for the caller (yes, the caller's gfp, respect the caller) 🌸
  • tag β€” the referenced task tag for TMR_ABORT_TASK πŸ”₯
  • flags β€” submit cmd flags, flags are flags, slay 🚩

⭐ DESCRIPTION ⭐

callable from all contexts.

that's it. that's the whole vibe. you can call it from anywhere, literally. πŸ’€πŸ™ˆ she's flexible like that.


πŸ‘‘ SEE ALSO πŸ‘‘

the kernel file lives at:

./drivers/target/target_core_transport.c

and here's the whole friend group (all of them, in order, tag yourself):


ok so that's the page!! now go forth and submit your TMRs responsibly, bestie πŸ’–

source path: ./drivers/target 🌟 dated: October 2026 🌟 and ofc it's target_submit_tmr(9) all the way down πŸŽ€πŸ’…βœ¨ mwah, bye!

πŸ“¦ where this page comes from