QB_LOOP_PO..._EVENT_SET(3)
π qb_loop_poll_low_fds_event_set β libqb Programmer's Manual, section 3
okay bestie, sit DOWN, because we're talking about qb_loop_poll_low_fds_event_set from libqb π¦ this is a section 3 function, so it's a library call, and it lives in the libqb Programmer's Manual. no cap, it's a tiny one, but it's important okay? π«Ά
β¨ NAME β¨
qb_loop_poll_low_fds_event_set β set a callback so you get events when your file descriptors are getting low π₯
like, the vibe is: "hey girl, you're running out of fds, wanna know?" π
πΈ SYNOPSIS πΈ
#include <qb/qbloop.h>
int32_t qb_loop_poll_low_fds_event_set(
qb_loop_t *l, /* pointer to the loop instance */
qb_loop_poll_low_fds_event_fn fn /* callback function. */
);
okay so you gotta pull in qb/qbloop.h first, always, no exceptions π and then you call it with exactly those two args, in exactly that order, and yes the return type is int32_t. don't @ me.
π PARAMS π
lβ pointer to the loop instance. it's your loop, your girl, your main character πfnβ callback function. the little function that goes "bestie!!" when it's time β¨
π¦ DESCRIPTION π¦
soooo... the DESCRIPTION section in the original is literally empty π no lore, no prose, nothing. just the section heading and then vibes. so i'm not gonna invent anything for you, because making stuff up is not the move, periodt. π
β RETURN VALUE β
- status, where
0means ok β - and
-errnomeans failure π
that's it. that's the whole contract. check your return value, i'm begging you π
π SEE ALSO π
the whole friend group, in the exact order the page lists them:
qb_loop_job_del(3)qb_loop_run(3)qb_loop_create(3)qb_loop_stop(3)qb_loop_signal_del(3)qb_loop_signal_add(3)qb_loop_job_add(3)qb_loop_poll_del(3)qb_loop_destroy(3)qb_loop_timer_expire_time_remaining(3)qb_loop_poll_mod(3)qb_loop_signal_mod(3)qb_loop_timer_del(3)qb_loop_timer_add(3)qb_loop_timer_is_running(3)qb_loop_timer_expire_time_get(3)qb_loop_poll_add(3)
π COPYRIGHT π
Copyright (C) 2010-2020 Red Hat, Inc.
okay one (1) tiny warning bestie: this page genuinely gives you nothing in DESCRIPTION, so don't go assuming extra behaviour, mmkay? what you see is what you get, fr fr. π
and that's the whole page, angel π§ this was libqb, dated 2025-09-16, and it ate, no crumbs, bye bestie πβ¨π
π¦ 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