提交 9f4533cd 编写于 作者: T Thomas Gleixner

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: NThomas 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
上级 fd45bb77
...@@ -33,8 +33,9 @@ ...@@ -33,8 +33,9 @@
* @head: head of timerqueue * @head: head of timerqueue
* @node: timer node to be added * @node: timer node to be added
* *
* Adds the timer node to the timerqueue, sorted by the * Adds the timer node to the timerqueue, sorted by the node's expires
* node's expires value. * 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) bool timerqueue_add(struct timerqueue_head *head, struct timerqueue_node *node)
{ {
...@@ -70,7 +71,8 @@ EXPORT_SYMBOL_GPL(timerqueue_add); ...@@ -70,7 +71,8 @@ EXPORT_SYMBOL_GPL(timerqueue_add);
* @head: head of timerqueue * @head: head of timerqueue
* @node: timer node to be removed * @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) bool timerqueue_del(struct timerqueue_head *head, struct timerqueue_node *node)
{ {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册