diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2017-12-22 09:51:15 -0500 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2017-12-29 17:13:10 -0500 |
commit | 9f4533cd7334235cd4c9b9fb1b0b8791e2ba01a7 (patch) | |
tree | e9fc7fc15eec19b69a23459f4420d12b1b1842fa /lib/timerqueue.c | |
parent | fd45bb77ad682be728d1002431d77b8c73342836 (diff) |
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
Diffstat (limited to 'lib/timerqueue.c')
-rw-r--r-- | lib/timerqueue.c | 8 |
1 files changed, 5 insertions, 3 deletions
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 @@ | |||
33 | * @head: head of timerqueue | 33 | * @head: head of timerqueue |
34 | * @node: timer node to be added | 34 | * @node: timer node to be added |
35 | * | 35 | * |
36 | * Adds the timer node to the timerqueue, sorted by the | 36 | * Adds the timer node to the timerqueue, sorted by the node's expires |
37 | * node's expires value. | 37 | * value. Returns true if the newly added timer is the first expiring timer in |
38 | * the queue. | ||
38 | */ | 39 | */ |
39 | bool timerqueue_add(struct timerqueue_head *head, struct timerqueue_node *node) | 40 | bool timerqueue_add(struct timerqueue_head *head, struct timerqueue_node *node) |
40 | { | 41 | { |
@@ -70,7 +71,8 @@ EXPORT_SYMBOL_GPL(timerqueue_add); | |||
70 | * @head: head of timerqueue | 71 | * @head: head of timerqueue |
71 | * @node: timer node to be removed | 72 | * @node: timer node to be removed |
72 | * | 73 | * |
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. | ||
74 | */ | 76 | */ |
75 | bool timerqueue_del(struct timerqueue_head *head, struct timerqueue_node *node) | 77 | bool timerqueue_del(struct timerqueue_head *head, struct timerqueue_node *node) |
76 | { | 78 | { |