XenevaOS
Loading...
Searching...
No Matches
Classes | Macros | Typedefs | Functions | Variables
workqueue.h File Reference
#include <linux/timer.h>
Include dependency graph for workqueue.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  work_struct
 
struct  workqueue_struct
 
struct  delayed_work
 

Macros

#define might_alloc(gfp)   do { (void)(gfp); } while (0)
 
#define INIT_WORK(_work, _func)
 
#define INIT_WORK_ONSTACK(_work, _func)   INIT_WORK(_work, _func)
 
#define destroy_work_on_stack(work)   do { (void)(work); } while (0)
 
#define create_singlethread_workqueue(name)    alloc_ordered_workqueue(name, 0)
 
#define container_of_work(ptr, type, member)    container_of(ptr, type, member)
 
#define INIT_DELAYED_WORK(_dwork, _func)
 
#define to_delayed_work(ptr)    container_of(ptr, struct delayed_work, work)
 

Typedefs

typedef void(* work_func_t) (struct work_struct *work)
 

Functions

struct work_struct * current_work (void)
 

Variables

struct work_struct * dcl_current_work
 
struct workqueue_struct * system_dfl_wq
 
struct workqueue_struct * system_percpu_wq
 
struct workqueue_struct * system_long_wq
 

Macro Definition Documentation

◆ container_of_work

#define container_of_work (   ptr,
  type,
  member 
)     container_of(ptr, type, member)

◆ create_singlethread_workqueue

#define create_singlethread_workqueue (   name)     alloc_ordered_workqueue(name, 0)

◆ destroy_work_on_stack

#define destroy_work_on_stack (   work)    do { (void)(work); } while (0)

◆ INIT_DELAYED_WORK

#define INIT_DELAYED_WORK (   _dwork,
  _func 
)
Value:
do { \
INIT_WORK(&(_dwork)->work, _func); \
timer_setup(&(_dwork)->timer, NULL, 0); \
(_dwork)->wq = NULL; \
} while (0)
#define NULL
Definition actypes.h:561

◆ INIT_WORK

#define INIT_WORK (   _work,
  _func 
)
Value:
do { \
(_work)->func = (_func); \
(_work)->pending = 0; \
(_work)->data = NULL; \
} while (0)
void * data
Definition kthread.h:30

◆ INIT_WORK_ONSTACK

#define INIT_WORK_ONSTACK (   _work,
  _func 
)    INIT_WORK(_work, _func)

◆ might_alloc

#define might_alloc (   gfp)    do { (void)(gfp); } while (0)

◆ to_delayed_work

#define to_delayed_work (   ptr)     container_of(ptr, struct delayed_work, work)

Typedef Documentation

◆ work_func_t

typedef void(* work_func_t) (struct work_struct *work)

Function Documentation

◆ current_work()

struct work_struct * current_work ( void  )

Variable Documentation

◆ dcl_current_work

struct work_struct* dcl_current_work
extern

◆ system_dfl_wq

struct workqueue_struct* system_dfl_wq
extern

◆ system_long_wq

struct workqueue_struct* system_long_wq
extern

◆ system_percpu_wq

struct workqueue_struct* system_percpu_wq
extern