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 the event_type enum value, slay πŸ’…
  • ibv_node_type_str β€” returns a string describing the node_type enum value, no cap 🌸
  • ibv_port_state_str β€” returns a string describing the port_state enum 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 value node_type 🌈
  • ibv_port_state_str() β€” returns a string describing the port state enum value port_state 🌸
  • ibv_event_type_str() β€” returns a string describing the event type enum value event_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