STRUCT RTRS_MSG_CONN_REQ(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

struct rtrs_msg_conn_req β€” Client connection request to the server πŸ’Œ

okay so bestie, this is the struct rtrs_msg_conn_req(9) page from the Kernel API Manual, and it's literally the β€œhey server, can we connect?” message in struct form. The client sends it, the server receives it, and the vibes are immaculate 🫢.

✨ SYNOPSIS ✨

struct rtrs_msg_conn_req {
    u8 __cma_version;
    u8 __ip_version;
    __le16 magic;
    __le16 version;
    __le16 cid;
    __le16 cid_num;
    __le16 recon_cnt;
    uuid_t sess_uuid;
    uuid_t paths_uuid;
    u8 first_conn : 1;
};

🧚 Members 🧚

  • __cma_version β€” Set to 0 by cma.c in case of AF_IB, and do not touch that, bestie. See https://www.spinics.net/lists/linux-rdma/msg22397.html β€” iykyk.
  • __ip_version β€” On the sender side this should be set to 0, or cma_save_ip_info will extract garbage and fail. That's a no-cap warning, fr fr πŸ™ˆ.
  • magic β€” RTRS magic ✨
  • version β€” RTRS protocol version
  • cid β€” Current connection id
  • cid_num β€” Number of connections per session
  • recon_cnt β€” Reconnections counter
  • sess_uuid β€” UUID of a session (path)
  • paths_uuid β€” UUID of a group of sessions (paths)
  • first_conn β€” 1 if the connection request is the first for that session, otherwise 0.

πŸ’€ NOTE πŸ’€

max size 56 bytes, see man rdma_connect πŸ‘€. That's the whole note, and it's highkey important.

🌈 SEE ALSO 🌈

  • Kernel file ./drivers/infiniband/ulp/rtrs/rtrs-pri.h enum rtrs_msg_types(9), enum rtrs_msg_flags(9), struct rtrs_sg_desc(9), struct rtrs_msg_conn_rsp(9), struct rtrs_msg_info_req(9), struct rtrs_msg_info_rsp(9), struct rtrs_msg_rkey_rsp(9), struct rtrs_msg_rdma_read(9), struct rtrs_msg_rdma_write(9), struct rtrs_msg_rdma_hdr(9)

xoxo, your ./drivers/infiniband/ulp/rtrs bestie β€” October 2026 edition of struct rtrs_msg_conn_req(9), mwah πŸ’‹.

πŸ“¦ where this page comes from