irdma_uk_srq_init(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– irdma_uk_srq_init β€” bestie's guide to initializing a shared qp πŸ’–

okay so this one's from the Kernel API Manual, section 9, and it's literally just... setting up your SRQ so the hardware doesn't get confused. let's go 🫢


✨ NAME ✨

irdma_uk_srq_init β€” initialize shared qp

(yes the NAME says "shared qp" and the function is about srq. that's what the page says, we don't question the ancestors 😭)

🌸 SYNOPSIS 🌸

int irdma_uk_srq_init (struct irdma_srq_uk *srq , struct
       irdma_srq_uk_init_info *info );

two args, returns an int. that's the whole vibe check πŸ’…

πŸŽ€ ARGUMENTS πŸŽ€

  • srq β€” the hw srq. both user and kernel mode, so it's giving main character energy for everybody πŸ‘‘
  • info β€” the srq initialization info. all the setup deets live in here πŸ¦‹

🌈 DESCRIPTION 🌈

so basically this function initializes the vars that get used in both user and kernel mode β€” one function, two worlds, iconic crossover ✨

the size of the wqe depends on the number of max fragments allowed. then: size of wqe * the number of wqes = the amount of memory allocated for srq. that's the math, no cap πŸ“

fr fr the memory math matters β€” get your fragment count wrong and the alloc is wrong, and that's a bad time πŸ’€

πŸ’œ SEE ALSO πŸ’œ

all the sibling functions, in the exact order the page gives them, because we don't reshuffle the group chat πŸ’…

the kernel file ./drivers/infiniband/hw/irdma/uk.c and:


🧚 sign-off 🧚

this page lives in ./drivers/infiniband/hw/irdma, dated October 2026, and answers to the name irdma_uk_srq_init(9). periodt πŸ’…β­

go forth and init your srq responsibly, bestie πŸ’–πŸŒΈ

πŸ“¦ where this page comes from