Changeset View
Changeset View
Standalone View
Standalone View
sys/contrib/openzfs/include/os/freebsd/spl/sys/taskq.h
Show All 20 Lines | |||||
/* | /* | ||||
* Copyright 2009 Sun Microsystems, Inc. All rights reserved. | * Copyright 2009 Sun Microsystems, Inc. All rights reserved. | ||||
* Use is subject to license terms. | * Use is subject to license terms. | ||||
*/ | */ | ||||
#ifndef _SYS_TASKQ_H | #ifndef _SYS_TASKQ_H | ||||
#define _SYS_TASKQ_H | #define _SYS_TASKQ_H | ||||
#ifdef _KERNEL | |||||
#include <sys/types.h> | #include <sys/types.h> | ||||
#include <sys/proc.h> | #include <sys/proc.h> | ||||
#include <sys/taskqueue.h> | #include <sys/taskqueue.h> | ||||
#include <sys/thread.h> | #include <sys/thread.h> | ||||
#include <sys/ck.h> | #include <sys/ck.h> | ||||
#ifdef __cplusplus | #ifdef __cplusplus | ||||
extern "C" { | extern "C" { | ||||
▲ Show 20 Lines • Show All 68 Lines • ▼ Show 20 Lines | |||||
extern int taskq_member(taskq_t *, kthread_t *); | extern int taskq_member(taskq_t *, kthread_t *); | ||||
extern taskq_t *taskq_of_curthread(void); | extern taskq_t *taskq_of_curthread(void); | ||||
void taskq_suspend(taskq_t *); | void taskq_suspend(taskq_t *); | ||||
int taskq_suspended(taskq_t *); | int taskq_suspended(taskq_t *); | ||||
void taskq_resume(taskq_t *); | void taskq_resume(taskq_t *); | ||||
#ifdef __cplusplus | #ifdef __cplusplus | ||||
} | } | ||||
#endif | |||||
#endif /* _KERNEL */ | |||||
#ifdef _STANDALONE | |||||
typedef int taskq_ent_t; | |||||
#define taskq_init_ent(x) | |||||
#endif | #endif | ||||
#endif /* _SYS_TASKQ_H */ | #endif /* _SYS_TASKQ_H */ |