ib_query_pkey(9)
π ib_query_pkey β a Kernel API Manual moment
okay so bestie, welcome to ib_query_pkey(9), the page that's literally just "get me that P_Key table entry" and honestly? she ate. we're in the Kernel API Manual, this is the whole vibe, let's go π
β¨ NAME β¨
ib_query_pkey β Get P_Key table entry π
β¨ SYNOPSIS β¨
int ib_query_pkey (struct ib_device *device , u32 port_num , u16 index ,
u16 *pkey );
no cap, that's the whole signature. look at her. iconic. π¦
β¨ ARGUMENTS β¨
deviceβ the Device you're querying, like, the main character here π«Άport_numβ the Port number you're querying, yes you gotta say which port, be specific bestieindexβ the P_Key table index you're querying, it's giving "which slot tho"pkeyβ the Returned P_Key π (she comes back to you through this pointer, so treat her right)
β¨ DESCRIPTION β¨
so ib_query_pkey fetches the specified P_Key table entry. that's it. that's the whole plot. specifical entry, fetched, done. lowkey obsessed with how unbothered this function is πΈ
β¨ SEE ALSO β¨
okay this list is LONG, so buckle up bestie, we're going on a little tour of the Kernel file ./drivers/infiniband/core/device.c and all her friends π§
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_modify_device(9)ib_modify_port(9)ib_find_gid(9)ib_find_pkey(9)ib_get_net_dev_by_params(9)
like, thirty entries. thirty. she said "iykyk" and meant it ππ₯
and that's the page!! this lil cutie lives in ./drivers/infiniband/core, dated October 2026, and yeah the footer says the same thing β source/version: ./drivers/infiniband/core, date: October 2026, page: ib_query_pkey(9). mwah, bye bestie ππ
π¦ 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