X-Git-Url: http://git.cascardo.eti.br/?a=blobdiff_plain;f=Documentation%2Fatomic_ops.txt;h=396bec3b74ed12ca1ddbfe980f9ffd4ca4d91308;hb=dc1544ea5d6dfdf29440295788e639e4b44c605a;hp=4ef245010457fc9301f21f6e78f2b1fc16c1d014;hpb=4f02f8220562591322c118d07a32bebf705318b7;p=cascardo%2Flinux.git diff --git a/Documentation/atomic_ops.txt b/Documentation/atomic_ops.txt index 4ef245010457..396bec3b74ed 100644 --- 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)