qb_loop_poll_mod(3)

qb_loop_poll_mod3

Modify a poll job.

Usage

#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 */
);

Params

l pointer to the loop instance

p the priority

fd file descriptor.

events (POLLIN|POLLOUT) etc ....

data user data passed into the dispatch function

dispatch_fn callback function

Overview

Structures

enum qb_loop_priority {
      QB_LOOP_LOW;
      QB_LOOP_MED;
      QB_LOOP_HIGH;
};

Return value

status (0 == ok, -errno == failure)

Releases

4 releases since Debian 11 (Bullseye); the text changed 3 times.

  1. 11
  2. 12
  3. 13
  4. Arch

From libqb 2.0.10-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.