QB_IPCS_CO..._STATS_GET(3)

✨ QB_IPCS_CO..._STATS_GET ✨ (section 3, bestie β€” libqb Programmer's Manual energy)

okay so. this is a <pink>libqb</pink> man page, section 3, and the function in the spotlight is qb_ipcs_connection_stats_get. she's a little icon, she's a getter, and she's here to hand you the connection statistics. no cap. 🫢


NAME πŸŽ€

qb_ipcs_connection_stats_get β€” get the connection statistics.

like. that's the whole job. she gets stats. that's it. periodt. πŸ’…


SYNOPSIS 🌸

#include <qb/qbipcs.h>

int32_t qb_ipcs_connection_stats_get(
    qb_ipcs_connection_t              *c,                 /* connection instance */
    struct qb_ipcs_connection_stats   *stats,             /* (out) the statistics structure */
    int32_t                            clear_after_read   /* clear stats after copying them into stats */
);

three args, one include, zero drama. we love a clean signature. πŸ¦‹


PARAMS πŸ’œ

  • c β€” the connection instance. the actual connection bestie in question.
  • stats β€” (out) the statistics structure. this is where the numbers get placed. it's an out param, she writes into it, she does not read from it.
  • clear_after_read β€” clear stats after copying them into stats. yes it's a mouthful of a name. yes it does exactly what it says.

DESCRIPTION πŸ“

so this section in the original is... lowkey just vibes. it hands the mic straight over to the structures. so go look below, that's where the real tea is. πŸ™ˆ


STRUCTURES ⭐

here's the whole glow-up of what you're getting back:

struct qb_ipcs_connection_stats {
    int32_t   client_pid;
    uint64_t  requests;
    uint64_t  responses;
    uint64_t  events;
    uint64_t  send_retries;
    uint64_t  recv_retries;
    int32_t   flow_control_state;
    uint64_t  flow_control_count;
};

eight fields, all of them iconic, all of them listed, none of them skipped. πŸ‘‘


RETURN VALUE 🌈

0 == ok; -errno to indicate a failure

so: zero means we ate. negative errno means something went sideways. that's the whole story. πŸ’€


SEE ALSO ✨

the whole friend group, fr fr:


Copyright (C) 2010-2020 Red Hat, Inc.


and that's the page!! LIBQB, dated 2025-09-16, filed under QB_IPCS_CO..._STATS_GET(3) β€” go forth and get those stats bestie, you've got this πŸ§šπŸ’…πŸ”₯
πŸ“¦ where this page comes from