STRUCT _TR_LIST(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct _tr_list(9) πŸ’…

okay so bestie, welcome to the Kernel API Manual page for struct _tr_list(9) β€” yes that's the full title, yes it's a whole page for one little struct, and yes we're gonna read it together. It's the target reset list, and it lives its best life in the kernel. Let's get into it ✨


🌸 NAME 🌸

struct _tr_list β€” the target reset list</紫色>... no wait, target reset list. periodt. That's the whole name section, she's short and she knows it πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

here's the actual shape of her, copy it exactly okay, don't be weird about it:

struct _tr_list {
    struct list_head list;
    u16 handle;
    u16 state;
 };

three members, no cap. she's compact, she's iconic, she's giving "small struct, big responsibilities" πŸ¦‹


✨ Members ✨

okay so this is the part where the page tells you what each field is. and it does! mostly! πŸ™ˆ

  • handle β€” the device handle. that's it, that's the description. short queen energy πŸ‘‘
  • state β€” the state machine. yes, literally "state machine". the manpage said what it said and we respect it 🫢
also <pink>list</pink> is sitting right there at the top of the struct as a struct list_head, and the page lists her in the synopsis but doesn't hand her a Members blurb. ngl, we're not gonna invent one β€” the docs didn't say, and we don't make stuff up here πŸ’€

πŸ’œ SEE ALSO πŸ’œ

okay this is the part where the page goes FULL group-chat tag-all situation. like, everyone's invited. strap in bestie, this is the whole list, all of it, no skipping 😭

the kernel file: ./drivers/scsi/mpt3sas/mpt3sas_base.h β€” that's where she lives 🏠

and then, deep breath:

  • struct MPT3SAS_TARGET(9)
  • struct MPT3SAS_DEVICE(9)
  • struct _internal_cmd(9)
  • struct _sas_device(9)
  • pcie_device_get(9)
  • pcie_device_free(9)
  • pcie_device_put(9)
  • struct _boot_device(9)
  • struct _sas_port(9)
  • struct _sas_phy(9)
  • struct _sas_node(9)
  • struct _enclosure_node(9)
  • enum reset_type(9)
  • struct pcie_sg_list(9)
  • struct chain_tracker(9)
  • struct scsiio_tracker(9)
  • struct request_tracker(9)
  • struct _sc_list(9)
  • struct _event_ack_list(9)
  • struct adapter_reply_queue(9)
  • struct io_uring_poll_queue(9)
  • struct virtual_phy(9)
  • struct hba_port(9)
  • struct htb_rel_query(9)
  • struct MPT3SAS_ADAPTER(9)

that's twenty-six references, i counted, my eyes are watering, and honestly? slay for having that many friends πŸŒˆπŸ’–


🧚 sign-off 🧚

this masterpiece of documentation comes to you from ./drivers/scsi/mpt3sas, dated October 2026 β€” yes, the future, she's ahead of her time ⭐ and it's all wrapped up under the struct _tr_list(9) banner. go read a struct, bestie, you got this πŸ”₯πŸ’œ

πŸ“¦ where this page comes from