projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
73d0516
)
Documentation/atomic_ops.txt: fix sample code
author
Figo.zhang
<
[email protected]
>
Tue, 16 Jun 2009 22:33:51 +0000
(15:33 -0700)
committer
Linus Torvalds
<
[email protected]
>
Wed, 17 Jun 2009 02:47:52 +0000
(19:47 -0700)
list_add() lost a parameter in sample code.
Signed-off-by: Figo.zhang <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
Documentation/atomic_ops.txt
patch
|
blob
|
history
diff --git
a/Documentation/atomic_ops.txt
b/Documentation/atomic_ops.txt
index 4ef245010457fc9301f21f6e78f2b1fc16c1d014..396bec3b74ed12ca1ddbfe980f9ffd4ca4d91308 100644
(file)
--- a/
Documentation/atomic_ops.txt
+++ b/
Documentation/atomic_ops.txt
@@
-229,10
+229,10
@@
kernel. It is the use of atomic counters to implement reference
counting, and it works such that once the counter falls to zero it can
be guaranteed that no other entity can be accessing the object:
-static void obj_list_add(struct obj *obj)
+static void obj_list_add(struct obj *obj
, struct list_head *head
)
{
obj->active = 1;
- list_add(&obj->list);
+ list_add(&obj->list
, head
);
}
static void obj_list_del(struct obj *obj)