rdma_uattrs_has_raw_cap(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… rdma_uattrs_has_raw_cap πŸ’…

okay so bestie, welcome to the rdma_uattrs_has_raw_cap page β€” it's section 9 of the Kernel API Manual, and honestly? it's a whole little vibe check for capabilities. let's get into it ✨


🌸 NAME 🌸

rdma_uattrs_has_raw_cap β€” literally just tells you whether an rdma device that's linked to the uverbs attributes file has CAP_NET_RAW capability or not. that's it. that's the whole thing. πŸŽ€


✨ SYNOPSIS ✨

bool rdma_uattrs_has_raw_cap (const struct uverbs_attr_bundle *attrs );

like, you pass it the attrs bundle and it gives you back a bool. clean. simple. iconic. πŸ‘‘


πŸ¦‹ ARGUMENTS πŸ¦‹

  • attrs β€” Pointer to uverbs attributes. yes, that's the whole description, she's a woman of few words πŸ’…

🌈 DESCRIPTION 🌈

Returns true if a rdma device's owning user namespace has CAP_NET_RAW capability, otherwise false.

no cap, that's genuinely all it does β€” it peeks at the user namespace that owns the rdma device, checks for that CAP_NET_RAW energy, and reports back a yes or a no. true if the capability's there, false if it's not. main character function behavior fr fr 🫢


πŸŽ€ SEE ALSO πŸŽ€

  • Kernel file ./drivers/infiniband/core/rdma_core.c β€” go read the source bestie, iykyk πŸ“–

lowkey the whole thing lives in ./drivers/infiniband/core and it's dated October 2026 β€” so yeah, that's the source and the version and the date all in one cute little sign-off. slay, go check your capabilities, mwah πŸ’–πŸ§šβ€β™€οΈ
πŸ“¦ where this page comes from