Lines Matching refs:tq
58 * @return ENOMEM if there are no free ids, EINVAL if tq or id are NULL, 0 on success.
60 int tqueue_alloc_id(tqueue_t *tq, unsigned int *id);
68 * EINVAL if tq is NULL or id is invalid,
72 int tqueue_alloc_id_at(tqueue_t *tq, unsigned int id);
79 * @return EINVAL if tq is NULL or id is invalid (not allocated by tqueue_alloc_id), 0 on sucess.
81 int tqueue_free_id(tqueue_t *tq, unsigned int id);
92 * @return EINVAL if id or tq are invalid, 0 on success.
95 int tqueue_register(tqueue_t *tq, unsigned int id, timeout_t *timeout);
101 * @return EINVAL if id or tq are invalid, 0 on success.
103 int tqueue_cancel(tqueue_t *tq, unsigned int id);
112 * @return EINVAL if tq is invalid, 0 on sucess.
115 int tqueue_update(tqueue_t *tq, uint64_t curr_time, uint64_t *next_time);
121 * @return EINVAL if tq or next_time is NULL, 0 on success.
123 int tqueue_next(tqueue_t *tq, uint64_t *next_time);
128 * @param[out] tq pointer to memory to use to initialise timout mutiplexer.
133 int tqueue_init_static(tqueue_t *tq, ps_malloc_ops_t *mops, int size);