Changeset View
Changeset View
Standalone View
Standalone View
head/cddl/contrib/opensolaris/lib/libzpool/common/sys/zfs_context.h
Show First 20 Lines • Show All 402 Lines • ▼ Show 20 Lines | |||||
#define TASKQ_THREADS_CPU_PCT 0x0008 /* Scale # threads by # cpus */ | #define TASKQ_THREADS_CPU_PCT 0x0008 /* Scale # threads by # cpus */ | ||||
#define TASKQ_DC_BATCH 0x0010 /* Mark threads as batch */ | #define TASKQ_DC_BATCH 0x0010 /* Mark threads as batch */ | ||||
#define TQ_SLEEP KM_SLEEP /* Can block for memory */ | #define TQ_SLEEP KM_SLEEP /* Can block for memory */ | ||||
#define TQ_NOSLEEP KM_NOSLEEP /* cannot block for memory; may fail */ | #define TQ_NOSLEEP KM_NOSLEEP /* cannot block for memory; may fail */ | ||||
#define TQ_NOQUEUE 0x02 /* Do not enqueue if can't dispatch */ | #define TQ_NOQUEUE 0x02 /* Do not enqueue if can't dispatch */ | ||||
#define TQ_FRONT 0x08 /* Queue in front */ | #define TQ_FRONT 0x08 /* Queue in front */ | ||||
#define TASKQID_INVALID ((taskqid_t)0) | |||||
extern taskq_t *system_taskq; | extern taskq_t *system_taskq; | ||||
extern taskq_t *taskq_create(const char *, int, pri_t, int, int, uint_t); | extern taskq_t *taskq_create(const char *, int, pri_t, int, int, uint_t); | ||||
#define taskq_create_proc(a, b, c, d, e, p, f) \ | #define taskq_create_proc(a, b, c, d, e, p, f) \ | ||||
(taskq_create(a, b, c, d, e, f)) | (taskq_create(a, b, c, d, e, f)) | ||||
#define taskq_create_sysdc(a, b, d, e, p, dc, f) \ | #define taskq_create_sysdc(a, b, d, e, p, dc, f) \ | ||||
(taskq_create(a, b, maxclsyspri, d, e, f)) | (taskq_create(a, b, maxclsyspri, d, e, f)) | ||||
extern taskqid_t taskq_dispatch(taskq_t *, task_func_t, void *, uint_t); | extern taskqid_t taskq_dispatch(taskq_t *, task_func_t, void *, uint_t); | ||||
extern void taskq_dispatch_ent(taskq_t *, task_func_t, void *, uint_t, | extern void taskq_dispatch_ent(taskq_t *, task_func_t, void *, uint_t, | ||||
taskq_ent_t *); | taskq_ent_t *); | ||||
extern void taskq_destroy(taskq_t *); | extern void taskq_destroy(taskq_t *); | ||||
extern void taskq_wait(taskq_t *); | extern void taskq_wait(taskq_t *); | ||||
extern void taskq_wait_id(taskq_t *, taskqid_t); | |||||
extern int taskq_member(taskq_t *, void *); | extern int taskq_member(taskq_t *, void *); | ||||
extern void system_taskq_init(void); | extern void system_taskq_init(void); | ||||
extern void system_taskq_fini(void); | extern void system_taskq_fini(void); | ||||
#define taskq_dispatch_safe(tq, func, arg, flags, task) \ | #define taskq_dispatch_safe(tq, func, arg, flags, task) \ | ||||
taskq_dispatch((tq), (func), (arg), (flags)) | taskq_dispatch((tq), (func), (arg), (flags)) | ||||
#define XVA_MAPSIZE 3 | #define XVA_MAPSIZE 3 | ||||
▲ Show 20 Lines • Show All 398 Lines • Show Last 20 Lines |