IBV_EVENT_TYPE_STR(3)
okay bestie, welcome to IBV_EVENT_TYPE_STR(3) from the Libibverbs Programmerβs Manual π this page is literally all about turning enum values into readable strings, and it ate β¨
π NAME π
ibv_event_type_strβ returns a string describing theevent_typeenum value, slay πibv_node_type_strβ returns a string describing thenode_typeenum value, no cap πΈibv_port_state_strβ returns a string describing theport_stateenum value, periodt π¦
π₯ SYNOPSIS π₯
#include <infiniband/verbs.h>
const char *ibv_event_type_str(enum ibv_event_type event_type);
const char *ibv_node_type_str(enum ibv_node_type node_type);
const char *ibv_port_state_str(enum ibv_port_state port_state);
π¦ DESCRIPTION π¦
okay so these three functions are your enum-to-string besties π
ibv_node_type_str()β returns a string describing the node type enum valuenode_typeπibv_port_state_str()β returns a string describing the port state enum valueport_stateπΈibv_event_type_str()β returns a string describing the event type enum valueevent_typeβ¨
π RETURN VALUE π
all three of these cuties return a constant string that describes the enum value passed as their argument π«Ά lowkey iconic
π AUTHOR π
Roland Dreier <rolandd@cisco.com> π
this page came from libibverbs, dated 2006-10-31, and its manual-page name is IBV_EVENT_TYPE_STR(3) π
β¨
π¦ where this page comes from
- alpine 3.24: rdma-core-doc 61.0-r0 Β· GPL-2.0-only OR BSD-2-Clause
- centos-stream 10: rdma-core-devel 62.0-3.el10 Β· GPLv2 or BSD
- centos-stream 9: rdma-core-devel 61.0-3.el9 Β· GPLv2 or BSD
- centos-stream 9: rdma-core-devel 61.0-3.el9 Β· GPLv2 or BSD
- ubuntu jammy: libibverbs-dev 39.0-1 Β· BSD-MIT OR GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms