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 intostats. 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β auint32_t, the ones still hanging around π₯closed_connectionsβ auint32_t, the ones that said bye π
β RETURN VALUE β
0== ok, we ate, everything's fine π-errnoto 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:
qb_ipcs_response_send(3)qb_ipcs_ref(3)qb_ipcs_unref(3)qb_ipcs_connection_auth_set(3)qb_ipcs_service_context_get(3)qb_ipcs_connection_ref(3)qb_ipcs_connection_next_get(3)qb_ipcs_connection_unref(3)qb_ipcs_context_set(3)qb_ipcs_poll_handlers_set(3)qb_ipcs_request_rate_limit(3)qb_ipcs_disconnect(3)qb_ipcs_connection_first_get(3)qb_ipcs_enforce_buffer_size(3)qb_ipcs_destroy(3)qb_ipcs_event_send(3)qb_ipcs_connection_stats_get_2(3)qb_ipcs_service_context_set(3)qb_ipcs_connection_stats_get(3)qb_ipcs_service_id_get(3)qb_ipcs_context_get(3)qb_ipcs_connection_get_buffer_size(3)qb_ipcs_create(3)qb_ipcs_run(3)qb_ipcs_event_sendv(3)qb_ipcs_connection_service_context_get(3)qb_ipcs_response_sendv(3)
π COPYRIGHT π
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
- fedora 44: libqb-devel 2.0.9-2.fc44 Β· LGPL-2.1-or-later
- fedora 44: libqb-devel 2.0.9-2.fc44 Β· LGPL-2.1-or-later
- ubuntu resolute: libqb-dev 2.0.9-1ubuntu1 Β· LGPL-2.1-or-later
- ubuntu stonking: libqb-dev 2.0.9-1ubuntu1 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms