smb2_set_rdma_key(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… smb2_set_rdma_key(9) πŸ’…

okay so bestie, welcome to the Kernel API Manual β€” yes we're reading kernel manpages now, we contain multitudes πŸŽ€. this one's called smb2_set_rdma_key and it is, and i say this with love, extremely niche. but we're gonna get through it together, hand in hand 🫢


✨ NAME ✨

smb2_set_rdma_key β€” validate descriptors and save invalidation state

like... that's the whole vibe. it checks your descriptors are valid, and it stashes the invalidation state. no cap πŸ’…


🌸 SYNOPSIS 🌸

int smb2_set_rdma_key (struct ksmbd_work *work , struct
smbdirect_buffer_descriptor_v1 *desc , __le32 Channel , __le16
channel_info_len );

it returns an int, it takes four things, and yes the formatting is chaotic but we love her for it 😭


πŸ¦‹ ARGUMENTS πŸ¦‹

  • work β€” the request work item. the main character of this whole operation, honestly πŸ‘‘
  • desc β€” the first RDMA buffer descriptor. first one!! she's the opener, the rest follow her lead πŸ’–
  • Channel β€” the nested RDMA channel type. __le32, so keep that endianness in mind bestie, we don't play with that 🌈
  • channel_info_len β€” the descriptor array length. it's a __le16, she's small but she matters ✨

⭐ RETURN ⭐

0 on success β€” slay πŸŽ‰ β€” otherwise -EINVAL. yeah. if it's not vibing, it's -EINVAL. that's the whole menu πŸ’€


πŸ’œ SEE ALSO πŸ’œ

okay this is the long part and i need you to stay with me. the kernel file in question is ./fs/smb/server/smb2pdu.c, and it's giving extended universe β€” here's the whole cast fr fr:

like i said. extended universe. sixty whole entries, i counted, my fingers hurt, but anything for you bestie πŸ˜­πŸ’–


ngl if you actually read all sixty of those you have main character energy. go touch some grass, then come back and validate some descriptors 🧚

and that's the page!! πŸŽ€ huge shoutout to ./fs/smb/server for housing all this chaos, dated October 2026, and to smb2_set_rdma_key(9) herself for being iconic in a deeply unhinged kernel way. periodt. πŸ’…βœ¨πŸ¦‹

πŸ“¦ where this page comes from