Skip to content

Commit 9f4533c

Browse files
committed
timerqueue: Document return values of timerqueue_add/del()
The return values of timerqueue_add/del() are not documented in the kernel doc comment. Add proper documentation. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Sebastian Siewior <bigeasy@linutronix.de> Cc: rt@linutronix.de Cc: Paul McKenney <paulmck@linux.vnet.ibm.com> Cc: Anna-Maria Gleixner <anna-maria@linutronix.de> Link: https://lkml.kernel.org/r/20171222145337.872681338@linutronix.de
1 parent fd45bb7 commit 9f4533c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

lib/timerqueue.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,9 @@
3333
* @head: head of timerqueue
3434
* @node: timer node to be added
3535
*
36-
* Adds the timer node to the timerqueue, sorted by the
37-
* node's expires value.
36+
* Adds the timer node to the timerqueue, sorted by the node's expires
37+
* value. Returns true if the newly added timer is the first expiring timer in
38+
* the queue.
3839
*/
3940
bool timerqueue_add(struct timerqueue_head *head, struct timerqueue_node *node)
4041
{
@@ -70,7 +71,8 @@ EXPORT_SYMBOL_GPL(timerqueue_add);
7071
* @head: head of timerqueue
7172
* @node: timer node to be removed
7273
*
73-
* Removes the timer node from the timerqueue.
74+
* Removes the timer node from the timerqueue. Returns true if the queue is
75+
* not empty after the remove.
7476
*/
7577
bool timerqueue_del(struct timerqueue_head *head, struct timerqueue_node *node)
7678
{

0 commit comments

Comments
 (0)