srpt_alloc_ioctx(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… srpt_alloc_ioctx β€” like, the SRPT I/O context allocator bestie

okay so this is a page from the Kernel API Manual (manual section 9, srpt_alloc_ioctx(9)) and honestly? it's a little one but she's doing her job. let me put you on. 🫢

✨ NAME ✨

srpt_alloc_ioctx β€” allocate a SRPT I/O context structure

no cap, that's the whole pitch. she allocates. she's an I/O context. iconic behaviour. πŸ‘‘


🌸 SYNOPSIS 🌸

struct srpt_ioctx * srpt_alloc_ioctx (struct srpt_device *sdev , int
ioctx_size , struct kmem_cache *buf_cache , enum dma_data_direction dir
);

like, she returns a struct srpt_ioctx * and she wants four things from you before she'll even look at you. main character energy fr. ✨


πŸŽ€ ARGUMENTS πŸŽ€

  • sdev β€” the SRPT HCA pointer. this is the hardware situation, she needs to know who she's working with πŸ’–
  • ioctx_size β€” the I/O context size. how much context, bestie. specify it.
  • buf_cache β€” the I/O buffer cache. struct kmem_cache *, the cache she pulls buffers from πŸ¦‹
  • dir β€” the DMA data direction. enum dma_data_direction, so she knows which way the data's flowing πŸ”₯
ngl, get these four right or she's not gonna be the one. that's it, that's the whole argument list. short and slay.

🧚 SEE ALSO 🧚

the kernel file lives right here, bookmark it:

./drivers/infiniband/ulp/srpt/ib_srpt.c

and the whole friend group, okay there's a lot of them, don't panic, just scroll:

like, that's the entire group chat and every single one of them @'d you. reply to all of them. 🫢


and that's the page!! πŸ’œ mwah πŸ’‹

cute little sign-off: this one lives out of ./drivers/infiniband/ulp/srpt, it's dated October 2026, and it's literally titled srpt_alloc_ioctx(9). periodt. 🌈⭐

πŸ“¦ where this page comes from