History

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.

Thomas Gleixner committed 8 years ago

Commit 9f4533c1 parent fd45bb71 file · +5 −3Browse files

Showing the changes to lib/timerqueue.c (1 of 1 file). Show all

Unified · Split

lib/timerqueue.c+5−3
@@ -33,8 +33,9 @@ · 32 unmodified lines
33 * @head: head of timerqueue33 * @head: head of timerqueue
34 * @node: timer node to be added34 * @node: timer node to be added
35 *35 *
36 * Adds the timer node to the timerqueue, sorted by the36 * 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 */
39bool timerqueue_add(struct timerqueue_head *head, struct timerqueue_node *node)40bool timerqueue_add(struct timerqueue_head *head, struct timerqueue_node *node)
40{41{
@@ -70,7 +71,8 @@ EXPORT_SYMBOL_GPL(timerqueue_add); · 29 unmodified lines
70 * @head: head of timerqueue71 * @head: head of timerqueue
71 * @node: timer node to be removed72 * @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 */
75bool timerqueue_del(struct timerqueue_head *head, struct timerqueue_node *node)77bool timerqueue_del(struct timerqueue_head *head, struct timerqueue_node *node)
76{78{

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t