Lines Matching refs:foo
96 The foo struct needs to have an rcu_head structure added,
99 struct foo {
106 so that the reclaimer function can fetch the struct foo address
109 call_rcu1(&foo.rcu, foo_reclaim);
113 struct foo *fp = container_of(rp, struct foo, rcu);
131 g_free_rcu(&foo, rcu);
260 p = qatomic_rcu_read(&foo);
270 old = foo;
271 qatomic_rcu_set(&foo, new);
280 p = qatomic_rcu_read(&foo);
289 old = foo;
290 qatomic_rcu_set(&foo, new);
298 old = foo;
299 qatomic_rcu_set(&foo, new);
304 happens when the last reference to a "foo" object is dropped.
309 foo_unref(struct foo *p) {
320 p = foo; p = foo;
321 /* do something with p. */ foo = new;
329 p = foo; old = foo;
330 foo_ref(p); foo = new;