QB_IPCS_STATS_GET(3)

πŸ’– qb_ipcs_stats_get(3) β€” from the libqb Programmer's Manual πŸ’–

okay bestie, so this one is a lil function from libqb's programmer manual, and it's literally just "tell me how my service is doing πŸ₯Ί". That's it. That's the whole vibe. She's a stats getter, she's lowkey the gossip of the IPC world, and she's about to spill the numbers.


✨ NAME ✨

qb_ipcs_stats_get β€” Get the service statistics. πŸ“Šβœ¨


πŸŽ€ SYNOPSIS πŸŽ€

#include <qb/qbipcs.h>

int32_t qb_ipcs_stats_get(
    qb_ipcs_service_t      *pt,                /* service instance */
    struct qb_ipcs_stats   *stats,             /* (out) the statistics structure */
    int32_t                 clear_after_read   /* clear stats after copying them into stats */
);

πŸ¦‹ PARAMS πŸ¦‹

  • pt β€” the service instance, i.e. the main character whose stats we're about to snoop on πŸ‘€
  • stats β€” (out) the statistics structure. This is where the numbers get dropped off, like a lil care package 🎁
  • clear_after_read β€” clear stats after copying them into stats. Yes bestie, she can wipe the slate clean after she reads it, very demure, very mindful 🧼

🌸 DESCRIPTION 🌸

...and that's it. Nothing. Nada. The DESCRIPTION section is giving no thoughts, head empty πŸ’€ no cap, the original page just has the heading and then nothing under it. She said "✨" and moved on. We respect the silence. πŸ™ˆ


πŸ‘‘ STRUCTURES πŸ‘‘

okay so here's the lil container that stats points at, and she's tiny, she only has two fields:

struct qb_ipcs_stats {
    uint32_t  active_connections;
    uint32_t  closed_connections;
};
  • active_connections β€” a uint32_t, the ones still hanging around πŸ”₯
  • closed_connections β€” a uint32_t, the ones that said bye πŸ‘‹

⭐ RETURN VALUE ⭐

  • 0 == ok, we ate, everything's fine πŸ’…
  • -errno to indicate a failure 😭 (negative errno, so like, she's telling you what went wrong in that classic Unix way)

🌈 SEE ALSO 🌈

the whole squad, fr fr β€” go read these too:


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


🫢 legal besties, don't strip the copyright, it's not cute. Keep it exactly like that.

and that's the whole page babes ✨ this manual was brought to you by LIBQB, dated 2025-09-16, and yeah she's still out here being QB_IPCS_STATS_GET(3) in the libqb programmer's manual. go get those stats, you got this πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from