rdma_dev_access_netns(9)
π NAME π
rdma_dev_access_netns β the little function that tells you whether an rdma device can be accessed from a specified net namespace or not. yeah. that's the whole vibe check. β¨
β¨ SYNOPSIS β¨
bool rdma_dev_access_netns (const struct ib_device *dev , const struct net *net );
One call, two pointers, one bool coming back at you bestie π«Ά
π ARGUMENTS π
devβ a pointer to the rdma device that needs to be checked. like, which device are we even talking about, babes πnetβ a pointer to the net namesapce for which access is to be checked. (yes ok, "namesapce" β that's literally how it's spelled in the original, we don't gatekeep typos here ππ«Ά) so: passing in a net namespace pointer, and this function figures out if you get access or not.
π¦ DESCRIPTION π¦
okay so here's the tea, and it's honestly not that deep but it matters β
When the rdma device is in shared mode, it simply ignores the net namespace. like, no thoughts, head empty, namespace who? π it doesn't care, it doesn't check, it just vibes. π
But when the rdma device is exclusive to a net namespace, that's when the vibe check actually happens β the rdma device's net namespace gets checked against the specified one. so it's giving "are you on the list or not" energy π and the function returns whether that access is a yes or a no.
two modes, one answer. iconic honestly. β¨
π₯ SEE ALSO π₯
First of all, the kernel file that runs all of this lives at ./drivers/infiniband/core/device.c β a whole main character file, no cap π
And then the friend group, aka the entire squad of related calls (go read them, they're all slay, iykyk):
rdma_dev_has_raw_cap(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)
all of them, no skips, no skipping the boring ones either β that's the whole roster bestie, go be obsessed π§π
ngl this one's short but it ate. π
okay that's the page!! sourced from ./drivers/infiniband/core, dated October 2026 β mwah, go read your manpages, ily, bye πππ¦πΈβ
π¦ 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