STRUCT SRP_RPORT(9)
π struct srp_rport(9)
okay bestie, welcome to the glow-up of struct srp_rport β the SRP initiator or target port, straight out of the Kernel API Manual. she's a struct, she's iconic, and she's got a lot of fields, so grab a snack π
β¨ NAME β¨
struct srp_rport β SRP initiator or target port π«Ά
πΈ SYNOPSIS πΈ
struct srp_rport {
struct device dev;
u8 port_id[16];
u8 roles;
void *lld_data;
struct mutex mutex;
enum srp_rport_state state;
int reconnect_delay;
int failed_reconnects;
struct delayed_work reconnect_work;
int fast_io_fail_tmo;
int dev_loss_tmo;
struct delayed_work fast_io_fail_work;
struct delayed_work dev_loss_work;
};
no cap, that's the whole thing. now let's meet the members one by one π
π Members π
devβ the device that this rport is associated with. her home base πport_idβ a 16-byte port identifier. yes, sixteen. she's got range πrolesβ what role this port is playing: initiator or target. main character energy either way πlld_dataβ LLD private data. lowkey none of our business πmutexβ protects against concurrent rport reconnect / fast_io_fail / dev_loss_tmo activity. she's the group chat mod keeping everyone from talking over each other πstateβ the rport state.reconnect_delayβ reconnect delay, in seconds β³failed_reconnectsβ how many reconnect attempts have flopped. it's giving character development πreconnect_workβ work structure used for scheduling reconnect attempts π οΈfast_io_fail_tmoβ fast I/O fail timeout, in seconds β‘dev_loss_tmoβ device loss timeout, in seconds πfast_io_fail_workβ work structure used for scheduling fast I/O fail work π οΈdev_loss_workβ work structure used for scheduling device loss work π οΈ
π¦ Description π¦
so here's the rundown of who cares about what, bestie:
Fields that are relevant for SRP initiator and SRP target drivers:
Fields that are only relevant for SRP initiator drivers:
fr fr, that's literally what the page says β two lists, both living their truth π
π₯ SEE ALSO π₯
- Kernel file
./include/scsi/scsi_transport_srp.h enum srp_rport_state(9)struct srp_function_template(9)srp_chkready(9)
go read those next, iykyk π
and that's the whole vibe check, bestie β¨ this page lives in <pink>./include/scsi</pink> and she was stamped <purple>October 2026</purple> β until next time, stay hydrated and don't forget to lock your mutex πππ¦
π¦ 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