# workqueue_item Struct Reference

`#include <workqueue.h>`

Collaboration diagram for workqueue_item:

[legend]

## Data Fields
workqueue_callback_t | callback
void * | data
struct slist_node | node

## Detailed Description

Work item structure. This is the element type in the queue.

Definition at line 57 of file workqueue.h.

## Field Documentation

workqueue_callback_t workqueue_item::callback

Work callback function.

Definition at line 59 of file workqueue.h.

Referenced by workqueue_add_item(), workqueue_add_item_safe(), workqueue_do_one_item(), and workqueue_init_item().

void* workqueue_item::data

Data to be passed to callback.

Definition at line 60 of file workqueue.h.

Referenced by workqueue_get_data(), and workqueue_init_item().

struct slist_node workqueue_item::node`[read]`

Linked list node of the item

Definition at line 61 of file workqueue.h.

Referenced by workqueue_add_item(), workqueue_add_item_safe(), workqueue_init_item(), workqueue_item_is_queued(), and workqueue_remove_item().

The documentation for this struct was generated from the following file:

- include/workqueue.h