rdma_restrict_node_type(9)
π rdma_restrict_node_type β bestie's guide to the Kernel API Manual β¨
okay so like, the manual name is rdma_restrict_node_type(9) and honestly? it's giving "small function, big locks-in energy" π
β¨ NAME β¨
rdma_restrict_node_type β no cap, this one restricts an RDMA identifier to a specific RDMA device node type π¦
πΈ SYNOPSIS πΈ
int rdma_restrict_node_type (struct rdma_cm_id *id , u8 node_type );
literally the whole signature, copy it exactly bestie π«Ά
π ARGUMENTS π
idβ the RDMA identifier. that's the main character right there πnode_typeβ the device node type. and listen, onlyRDMA_NODE_UNSPECIFIED(that's the default, iykyk),RDMA_NODE_RNICandRDMA_NODE_IB_CAare allowed. that's it. those three. don't try anything else π
π₯ DESCRIPTION π₯
so what this does is it lets the caller restrict the possible devices used to iWarp (RDMA_NODE_RNIC) or InfiniBand/RoCEv1/RoCEv2 (RDMA_NODE_IB_CA). slay, very demure, very mindful π
but here's the catch, and it's a big one:
it needs to be called before the RDMA identifier is bound to a device. which means it should be called beforerdma_bind_addr,rdma_resolve_addrandrdma_listen. so like, before. not after. before. π
β SEE ALSO β
kernel file ./include/rdma/rdma_cm.h, and the whole friend group honestly:
rdma_create_id(9)rdma_destroy_id(9)rdma_bind_addr(9)rdma_resolve_addr(9)rdma_resolve_route(9)rdma_resolve_ib_service(9)rdma_create_qp(9)rdma_destroy_qp(9)rdma_init_qp_attr(9)rdma_listen(9)rdma_notify(9)rdma_reject(9)rdma_disconnect(9)rdma_join_multicast(9)rdma_leave_multicast(9)rdma_set_service_type(9)rdma_set_reuseaddr(9)rdma_set_afonly(9)rdma_reject_msg(9)rdma_consumer_reject_data(9)rdma_read_gids(9)
okay that's the whole page bestie, go forth and restrict responsibly π§π
source/version: ./include/rdma Β· date: October 2026 β mwah, that's the footer, love u, 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