X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=lib%2Ftimerqueue.c;h=0d54bcbc8170c7754aef0487eb10b8f7b5773103;hb=1d966eb4d6326a2521073174e9710713e9846e8b;hp=4a720ed4fdafd575df46159a3d51131902d638e4;hpb=a32f80b30dae067357f96bc2a7f977e8a91b45ed;p=mirror_ubuntu-bionic-kernel.git diff --git a/lib/timerqueue.c b/lib/timerqueue.c index 4a720ed4fdaf..0d54bcbc8170 100644 --- a/lib/timerqueue.c +++ b/lib/timerqueue.c @@ -33,8 +33,9 @@ * @head: head of timerqueue * @node: timer node to be added * - * Adds the timer node to the timerqueue, sorted by the - * node's expires value. + * Adds the timer node to the timerqueue, sorted by the node's expires + * value. Returns true if the newly added timer is the first expiring timer in + * the queue. */ bool timerqueue_add(struct timerqueue_head *head, struct timerqueue_node *node) { @@ -70,7 +71,8 @@ EXPORT_SYMBOL_GPL(timerqueue_add); * @head: head of timerqueue * @node: timer node to be removed * - * Removes the timer node from the timerqueue. + * Removes the timer node from the timerqueue. Returns true if the queue is + * not empty after the remove. */ bool timerqueue_del(struct timerqueue_head *head, struct timerqueue_node *node) {