QB_LIST_INIT(3)
β¨ QB_LIST_INIT β¨
okay bestie, welcome to the libqb girlies' corner of the manual pages π
this one's from the libqb Programmer's Manual and it's literally the cutest lil baby function in the whole linked-list family. it's giving origin story. it's giving day one. let's get into it π«Ά
πΈ NAME πΈ
qb_list_init β Initialize the list entry.
π SYNOPSIS π
#include <qb/qblist.h>
static void qb_list_init(
struct qb_list_head *head /* pointer to the list head */
);
π¦ PARAMS π¦
headβ pointer to the list head. that's it. that's the whole assignment. one (1) pointer and she's ready π
π DESCRIPTION π
Points next and prev pointers to head.
no cap, that's the entire vibe. you hand her a head, she points next and prev right back at that same head β a little self-love moment, a closed loop of one, the main character energy of data structures π every list has to start somewhere and this is where it starts, fr fr.
lowkey important: do this before you start adding stuff, otherwise your list is just a feral uninitialized pointer situation and that's not the vibe π
π STRUCTURES π
struct qb_list_head {
struct next;
struct prev;
};
the two lil members doing all the work. iconic honestly π
π SEE ALSO π
the whole squad, go say hi:
qb_list_empty(3)qb_list_add_tail(3)qb_list_add(3)qb_list_splice_tail(3)qb_list_length(3)qb_list_replace(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 page!! tysm for reading, you ate that ππ
sign-off szn: this lil masterpiece is from LIBQB, dated 2025-09-16, and it lives at QB_LIST_INIT(3) in case you need to find her again π¦ mwah, go init something beautiful πβ¨
π¦ 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