Deleted Added
full compact
taskq.h (302408) taskq.h (339034)
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 58 unchanged lines hidden (view full) ---

67 * KM_SLEEP/KM_NOSLEEP.
68 */
69#define TQ_SLEEP 0x00 /* Can block for memory */
70#define TQ_NOSLEEP 0x01 /* cannot block for memory; may fail */
71#define TQ_NOQUEUE 0x02 /* Do not enqueue if can't dispatch */
72#define TQ_NOALLOC 0x04 /* cannot allocate memory; may fail */
73#define TQ_FRONT 0x08 /* Put task at the front of the queue */
74
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 58 unchanged lines hidden (view full) ---

67 * KM_SLEEP/KM_NOSLEEP.
68 */
69#define TQ_SLEEP 0x00 /* Can block for memory */
70#define TQ_NOSLEEP 0x01 /* cannot block for memory; may fail */
71#define TQ_NOQUEUE 0x02 /* Do not enqueue if can't dispatch */
72#define TQ_NOALLOC 0x04 /* cannot allocate memory; may fail */
73#define TQ_FRONT 0x08 /* Put task at the front of the queue */
74
75#define TASKQID_INVALID ((taskqid_t)0)
76
75#ifdef _KERNEL
76
77extern taskq_t *system_taskq;
78
79void taskq_init(void);
80void taskq_mp_init(void);
81
82taskq_t *taskq_create(const char *, int, pri_t, int, int, uint_t);
83taskq_t *taskq_create_instance(const char *, int, int, pri_t, int, int, uint_t);
84taskq_t *taskq_create_proc(const char *, int, pri_t, int, int,
85 struct proc *, uint_t);
86taskq_t *taskq_create_sysdc(const char *, int, int, int,
87 struct proc *, uint_t, uint_t);
88taskqid_t taskq_dispatch(taskq_t *, task_func_t, void *, uint_t);
89void taskq_dispatch_ent(taskq_t *, task_func_t, void *, uint_t,
90 taskq_ent_t *);
91void nulltask(void *);
92void taskq_destroy(taskq_t *);
93void taskq_wait(taskq_t *);
77#ifdef _KERNEL
78
79extern taskq_t *system_taskq;
80
81void taskq_init(void);
82void taskq_mp_init(void);
83
84taskq_t *taskq_create(const char *, int, pri_t, int, int, uint_t);
85taskq_t *taskq_create_instance(const char *, int, int, pri_t, int, int, uint_t);
86taskq_t *taskq_create_proc(const char *, int, pri_t, int, int,
87 struct proc *, uint_t);
88taskq_t *taskq_create_sysdc(const char *, int, int, int,
89 struct proc *, uint_t, uint_t);
90taskqid_t taskq_dispatch(taskq_t *, task_func_t, void *, uint_t);
91void taskq_dispatch_ent(taskq_t *, task_func_t, void *, uint_t,
92 taskq_ent_t *);
93void nulltask(void *);
94void taskq_destroy(taskq_t *);
95void taskq_wait(taskq_t *);
96void taskq_wait_id(taskq_t *, taskqid_t);
94void taskq_suspend(taskq_t *);
95int taskq_suspended(taskq_t *);
96void taskq_resume(taskq_t *);
97int taskq_member(taskq_t *, kthread_t *);
98
99#endif /* _KERNEL */
100
101#ifdef __cplusplus
102}
103#endif
104
105#endif /* _SYS_TASKQ_H */
97void taskq_suspend(taskq_t *);
98int taskq_suspended(taskq_t *);
99void taskq_resume(taskq_t *);
100int taskq_member(taskq_t *, kthread_t *);
101
102#endif /* _KERNEL */
103
104#ifdef __cplusplus
105}
106#endif
107
108#endif /* _SYS_TASKQ_H */