QB_HDB_HAN...FCOUNT_GET(3)
π qb_hdb_handle_refcount_get β libqb Programmer's Manual β¨
okay so bestie, welcome to the libqb programmer's manual, and today's main character is qb_hdb_handle_refcount_get β she gets the current refcount. that's it. that's her whole job and she does it flawlessly. π
πΈ NAME πΈ
qb_hdb_handle_refcount_get β Get the current refcount.
π¦ SYNOPSIS π¦
#include <qb/qbhdb.h>
int32_t qb_hdb_handle_refcount_get(
struct qb_hdb *hdb, /* the database instance */
qb_handle_t handle_in /* the handle */
);
π PARAMS π
hdbβ the database instance ποΈ like, the whole vibe containerhandle_inβ the handle π«Ά the specific lil guy you're asking about
π DESCRIPTION π
ngl, the original page leaves this section completely empty β no lore, no tea, nothing. so we're just gonna keep it moving, no cap. π
π STRUCTURES π
here's the struct, verbatim, character for character, because we do not mess with the facts around here:
struct qb_hdb {
uint32_t handle_count;
qb_array_t handles;
uint32_t iterator;
void (*destructor)(void *);
uint32_t first_run;
};
β RETURN VALUE β
(>= 0 is the refcount, -errno failure)
so yeah β if you get >= 0, that's your refcount, slay. if you get -errno, something went sideways and it's giving failure. π
π SEE ALSO π
the whole friend group, fr fr:
qb_hdb_handle_get(3)qb_hdb_iterator_reset(3)qb_hdb_handle_create(3)qb_hdb_handle_destroy(3)qb_hdb_iterator_next(3)qb_hdb_nocheck_convert(3)qb_hdb_create(3)qb_hdb_destroy(3)qb_hdb_base_convert(3)qb_hdb_handle_get_always(3)qb_hdb_handle_put(3)
π COPYRIGHT π
Copyright (C) 2010-2020 Red Hat, Inc.
okay that's the whole page bestie, we ate and left no crumbs πβ¨ this was LIBQB, dated 2025-09-16, and the page you just read is QB_HDB_HAN...FCOUNT_GET(3) β mwah, bye! ππ
π¦
π¦ 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