STRUCT SRP_FUNCTION_TEMPLATE(9)
π 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 thestate,fast_io_fail_tmoanddev_loss_tmosysfs attribute for an rport. Yes/no energy, iconic β¨reset_timer_if_blockedβ whether or notsrp_timed_outshould 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 notNULL, it points to the defaultreconnect_delayvalue πfast_io_fail_tmoβ if it's notNULL, it points to the defaultfast_io_fail_tmovalue π₯dev_loss_tmoβ if it's notNULL, it points to the defaultdev_loss_tmovalue πreconnectβ callback function for reconnecting to the target. See alsosrp_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
- 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