rdma_dev_has_raw_cap(9)
π 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. ππ
rdma_dev_access_netns(9)ib_device_put(9)_ib_alloc_device(9)ib_dealloc_device(9)ib_port_immutable_read(9)ib_register_device(9)ib_unregister_device(9)ib_unregister_device_and_put(9)ib_unregister_driver(9)ib_unregister_device_queued(9)ib_register_client(9)ib_unregister_client(9)ib_get_client_nl_info(9)ib_set_client_data(9)ib_register_event_handler(9)ib_unregister_event_handler(9)ib_query_port(9)ib_device_set_netdev(9)ib_query_netdev_port(9)ib_device_get_by_netdev(9)ib_enum_roce_netdev(9)ib_enum_all_roce_netdevs(9)ib_device_enable_gid_updates(9)ib_device_disable_gid_updates(9)ib_query_pkey(9)ib_modify_device(9)ib_modify_port(9)ib_find_gid(9)ib_find_pkey(9)ib_get_net_dev_by_params(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms