rdma_dev_has_raw_cap(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ NAME πŸŽ€

okay bestie, meet rdma_dev_has_raw_cap(9) β€” it’s from the Kernel API Manual, and its whole job is returning whether a specified rdma device has CAP_NET_RAW capability or not. Lowkey iconic, highkey useful. πŸ’…βœ¨

✨ SYNOPSIS ✨

bool rdma_dev_has_raw_cap (const struct ib_device *dev );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • dev β€” Pointer to rdma device whose capability to be checked. That’s the device you’re putting under the microscope, bestie. πŸ”πŸ’–

🌸 DESCRIPTION 🌸

Returns true if a rdma device’s owning user namespace has CAP_NET_RAW capability, otherwise false. That’s the vibe check: owning user namespace got CAP_NET_RAW? true. Didn’t? false. Periodt. 🫢

When rdma subsystem is in legacy shared network, namespace mode, the default net namespace is considered. So yeah, in that mode, the default net namespace is the one getting considered β€” noted, no cap. πŸ’€βœ¨

πŸ’– SEE ALSO πŸ’–

Kernel file ./drivers/infiniband/core/device.c β€” yes, that’s the file, and it’s serving source-file realness. πŸ“πŸ‘‘


this lil page is coming at you from ./drivers/infiniband/core, dated October 2026, and it’s still proudly rdma_dev_has_raw_cap(9) β€” mwah, bye bestie, hydrate and check those capabilities πŸ’–πŸ¦‹πŸŽ€

πŸ“¦ where this page comes from