Lines Matching +full:lock +full:- +full:state
9 1. State Container
13 1. State Container
21 The most common way to achieve this is to use the state container design
25 spinlock_t lock; /* Example member */
35 return -ENOMEM;
36 spin_lock_init(&foo->lock);
41 called. This is our state container for this instance of the device driver.
43 state around to all functions that need access to the state and its members.
72 spinlock_t lock;
89 queue_work(foo->wq, &foo->offload);
97 foo->wq = create_singlethread_workqueue("foo-wq");
98 INIT_WORK(&foo->offload, foo_work);