QB_LIST_ADD_TAIL(3)
π qb_list_add_tail(3) β libqb Programmer's Manual π
okay bestie, so this one is literally called qb_list_add_tail and it does exactly what it says on the tin: it adds stuff to the list, but at the end of the list. not the front. the tail. the back. the lil caboose. πβ¨ and yes, it lives in the libqb programmer's manual, so you already know it's giving real-deal Unix energy.
β¨ SYNOPSIS β¨
#include <qb/qblist.h>
static void qb_list_add_tail(
struct qb_list_head *element, /* pointer to the element to add */
struct qb_list_head *head /* pointer to the list head */
);
no cap, that's the whole signature. two pointers, one job. π«Ά
πΈ PARAMS πΈ
elementβ pointer to the element to add. this is the lil guy you're yeeting into the list πheadβ pointer to the list head. this is the list you're yeeting him into π
π¦ DESCRIPTION π¦
bestie... the description section in the original is empty. like, empty empty. nothing but vibes and silence. π
so yeah, the canonical manpage doesn't spill any extra lore here β the name and the params are doing all the talking. which, honestly? iconic. it said "my function name is my description" and walked away. periodt. π
π STRUCTURES π
here's the struct you're working with, exactly as written, no edits no notes:
struct qb_list_head {
struct next;
struct prev;
};
that's the whole thing. two fields. next and prev. a doubly-linked-list head doing its main character thing. π
π SEE ALSO π
go read these too, they're the friend group:
qb_list_empty(3)qb_list_add(3)qb_list_splice_tail(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.
and that's the whole page, bestie!! π mwah. this lil writeup comes to you courtesy of LIBQB, dated 2025-09-16, under the manual name QB_LIST_ADD_TAIL(3). go add something to the tail of a list and slay. πβ¨π¦
π¦ 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