QB_LOOP_POLL_MOD(3)
π QB_LOOP_POLL_MOD π
okay bestie, we're in the libqb Programmer's Manual and today's main character is qb_loop_poll_mod(3) β the one that modifies a poll job. that's it. that's the whole name. slay.
β¨ NAME β¨
qb_loop_poll_mod β Modify a poll job. yes girl, modify. we're not adding, we're not deleting, we're editing the whole thing like it's a TikTok draft. π¬
πΈ SYNOPSIS πΈ
#include <qb/qbloop.h>
int32_t qb_loop_poll_mod(
qb_loop_t *l, /* pointer to the loop instance */
enum qb_loop_priority p, /* the priority */
int32_t fd, /* file descriptor. */
int32_t events, /* (POLLIN|POLLOUT) etc .... */
void *data, /* user data passed into the dispatch function */
qb_loop_poll_dispatch_fn dispatch_fn /* callback function */
);
look at those comments. the original author left us little sticky notes and honestly? π₯Ί we love a documented signature. keep them, they're iconic.
π PARAMS π
lβ pointer to the loop instance. the loop. the whole vibe container. πpβ the priority. which tier of the priority enum you're repping.fdβ file descriptor. yes with a period in the original, we keep the period, we don't question the period. πeventsβ(POLLIN|POLLOUT)etc .... the etc is doing so much heavy lifting here and i respect it.dataβ user data passed into the dispatch function. your lil payload. your lil gift. πdispatch_fnβ callback function. the function that gets called back. (that's what callback means bestie, i'm not being shady i promise π«Ά)
π¦ DESCRIPTION π¦
that's it. that's the section. the original just went straight from DESCRIPTION into STRUCTURES with absolutely nothing in between, and honestly? not me shipping an empty DESCRIPTION section. the audacity. the confidence. we love a mysterious queen who says nothing and moves on. π
so, like the original: nothing here. moving on. periodt.
π STRUCTURES π
enum qb_loop_priority {
QB_LOOP_LOW;
QB_LOOP_MED;
QB_LOOP_HIGH;
};
three tiers of priority. QB_LOOP_LOW, QB_LOOP_MED, QB_LOOP_HIGH. low, med, high. it's giving tier list. it's giving ranked choice. π₯
β RETURN VALUE β
status (0 == ok, -errno == failure)
so: 0 and you're thriving β¨. -errno and it's giving π. that's the whole vibe check.
π SEE ALSO π
your recommended-for-you page, bestie:
qb_loop_job_del(3)qb_loop_run(3)qb_loop_create(3)qb_loop_stop(3)qb_loop_poll_low_fds_event_set(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_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)
all seventeen of them. no i did not skip any. we do not gatekeep on this account. π«Ά
π COPYRIGHT π
Copyright (C) 2010-2020 Red Hat, Inc.
reminder bestie: everything above is verbatim-faithful to the original page. i added sparkle, not opinions about how the function behaves. no cap. π§
and that's the whole page!! this was LIBQB, dated 2025-09-16, and it's QB_LOOP_POLL_MOD(3) β thanks for reading my little manual page bestie, go modify a poll job 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