QB_LIST_SPLICE_TAIL(3)
π QB_LIST_SPLICE_TAIL π
okay bestie, so this one lives in libqb's programmer manual, section 3 (that's the library-functions girlies, iykyk). It's qb_list_splice_tail and she is literally the "join two lists, each list being a queue" moment. Slay.
β¨ NAME β¨
qb_list_splice_tail β join two lists, each list being a queue. π
πΈ SYNOPSIS πΈ
#include <qb/qblist.h>
static void qb_list_splice_tail(
struct qb_list_head *list, /* the new list to add. */
struct qb_list_head *head /* the place to add it in the first list. */
);
not me including <qb/qblist.h> like the iconic header it is π
and yes it's static void, exactly like that, don't come for me.
π¦ PARAMS π¦
listβ the new list to add. that's the incoming bestie, the one getting tacked on. π«Άheadβ the place to add it in the first list. like, the spot where the new list gets attached. π
π DESCRIPTION π
so... the DESCRIPTION section is genuinely, canonically empty in the original. π no cap. The tea is all in PARAMS and STRUCTURES, and I refuse to make up extra lore that isn't in the source. periodt.
π STRUCTURES π
here's the struct that's doing all the heavy lifting:
struct qb_list_head {
struct next;
struct prev;
};
she's giving doubly-linked-list main character energy, fr fr. next and prev, keeping everybody connected. β¨
π SEE ALSO π
the whole squad, linked up:
qb_list_empty(3)qb_list_add_tail(3)qb_list_add(3)qb_list_length(3)qb_list_replace(3)qb_list_init(3)qb_list_splice(3)qb_list_is_last(3)qb_list_del(3)
π COPYRIGHT π
Copyright (C) 2010-2020 Red Hat, Inc.
okay that's the whole page, bestie β every flag, param, struct field and reference, untouched and thriving. π§
this lil cutie came from the libqb crew and the page is dated 2025-09-16, so go forth and splice those tails with confidence. mwah π ππ¦
π¦ 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