Lines Matching refs:struct
153 :c:struct:`k_work_delayable`. To get access to an object that contains the
158 static void work_handler(struct k_work *work)
160 struct k_work_delayable *dwork = k_work_delayable_from_work(work);
161 struct work_context *ctx = CONTAINER_OF(dwork, struct work_context,
224 A workqueue is defined using a variable of type :c:struct:`k_work_q`.
226 thread, initializing the :c:struct:`k_work_q`, either zeroing its
241 struct k_work_q my_work_q;
270 A work item is defined using a variable of type :c:struct:`k_work`. It must
286 struct device_info {
287 struct k_work work;
300 void print_error(struct k_work *item)
302 struct device_info *the_device =
303 CONTAINER_OF(item, struct device_info, work);
341 :c:struct:`k_work_delayable`. It must be initialized by calling
371 a pointer to the containing :c:struct:`k_work_delayable` from a pointer to
372 :c:struct:`k_work` that is passed to a work handler function.
398 These APIs must be provided with a :c:struct:`k_work_sync` object that has no
411 example when it's put into a :c:struct:`k_queue` by some thread and processed
419 locks (:c:struct:`k_spinlock`) or thread-aware locks (:c:struct:`k_sem`,
420 :c:struct:`k_mutex` , ...) may be used to ensure data races don't occur.
429 static void work_handler(struct work *work)
431 struct work_context *parent = CONTAINER_OF(work, struct work_context,