ib_find_pkey(9)
okay bestie, welcome to the ib_find_pkey(9) page in the Kernel API Manual β this is the one where the main character is a function that finds a PKey table index. periodt. π
π NAME π
ib_find_pkey β returns the PKey table index where a specified PKey value occurs. no cap, thatβs literally the whole glow-up. β¨
β¨ SYNOPSIS β¨
this is the signature, and yes sheβs iconic, so keep her exact:
int ib_find_pkey (struct ib_device *device , u32 port_num , u16 pkey ,
u16 *index );
π ARGUMENTS π
okay so hereβs the vibe check on every argument, and not a single one is getting left behind:
deviceβ the device to query. this is the one you point at. π«Άport_numβ the port number of the device to search for the PKey. yes, port number, not a vibe. πΈpkeyβ the PKey value to search for. the actual thing weβre hunting. πindexβ the index into the PKey table where the PKey was found. this is where the found result goes, iykyk. β¨
π SEE ALSO π
this function does not exist in a vacuum, bestie β hereβs the whole group chat from the kernel file ./drivers/infiniband/core/device.c:
rdma_dev_access_netns(9)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_get_net_dev_by_params(9)
later, bestie! this page is source/version ./drivers/infiniband/core, dated October 2026, and itβs the ib_find_pkey(9) manual β slay π
β¨
π¦ 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