STRUCT SRP_FUNCTION_TEMPLATE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

struct srp_function_template β€” bestie, it's literally the template for SRP initiator drivers ✨

This page lives in the Kernel API Manual, and it's all about that one struct, so let's get into it 🫢


🌸 SYNOPSIS 🌸

struct srp_function_template {
    bool has_rport_state;
    bool reset_timer_if_blocked;
    int *reconnect_delay;
    int *fast_io_fail_tmo;
    int *dev_loss_tmo;
    int (*reconnect)(struct srp_rport *rport);
    void (*terminate_rport_io)(struct srp_rport *rport);
    void (*rport_delete)(struct srp_rport *rport);
 };

Okay so that's the whole shape of it β€” copy it exactly, no cap, the types and the pointers and the function pointers are all doing their little thing πŸ’…


πŸŽ€ Members πŸŽ€

  • has_rport_state β€” whether or not to create the state, fast_io_fail_tmo and dev_loss_tmo sysfs attribute for an rport. Yes/no energy, iconic ✨
  • reset_timer_if_blocked β€” whether or not srp_timed_out should reset the command timer if the device on which it has been queued is blocked. That's the whole vibe check right there πŸ¦‹
  • reconnect_delay β€” if it's not NULL, it points to the default reconnect_delay value πŸ‘‘
  • fast_io_fail_tmo β€” if it's not NULL, it points to the default fast_io_fail_tmo value πŸ”₯
  • dev_loss_tmo β€” if it's not NULL, it points to the default dev_loss_tmo value 🌈
  • reconnect β€” callback function for reconnecting to the target. See also srp_reconnect_rport 🧚
  • terminate_rport_io β€” callback function for terminating all outstanding I/O requests for an rport 😭
  • rport_delete β€” callback function that deletes an rport πŸ’€

πŸ’œ Description πŸ’œ

Fields that are only relevant for SRP initiator drivers:

That's it. That's the whole description bestie β€” main character energy, minimal words, maximum mystery πŸ™ˆ

⭐ SEE ALSO ⭐

  • Kernel file ./include/scsi/scsi_transport_srp.h
  • enum srp_rport_state(9)
  • struct srp_rport(9)
  • srp_chkready(9)

And that's the page, bestie β€” slay πŸ’… This one ships under ./include/scsi and it's dated October 2026, so go forth and be the most knowledgeable SRP initiator driver author in the group chat πŸ“βœ¨

πŸ“¦ where this page comes from