Changeset View
Changeset View
Standalone View
Standalone View
sys/compat/linuxkpi/common/include/linux/completion.h
Show All 22 Lines | |||||
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||||
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||||
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | ||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||||
* | * | ||||
* $FreeBSD$ | * $FreeBSD$ | ||||
*/ | */ | ||||
#ifndef _LINUX_COMPLETION_H_ | #ifndef _LINUXKPI_LINUX_COMPLETION_H_ | ||||
#define _LINUX_COMPLETION_H_ | #define _LINUXKPI_LINUX_COMPLETION_H_ | ||||
#include <linux/errno.h> | #include <linux/errno.h> | ||||
struct completion { | struct completion { | ||||
unsigned int done; | unsigned int done; | ||||
}; | }; | ||||
#define INIT_COMPLETION(c) \ | #define INIT_COMPLETION(c) \ | ||||
Show All 20 Lines | #define completion_done(c) \ | ||||
linux_completion_done(c) | linux_completion_done(c) | ||||
extern void linux_complete_common(struct completion *, int); | extern void linux_complete_common(struct completion *, int); | ||||
extern int linux_wait_for_common(struct completion *, int); | extern int linux_wait_for_common(struct completion *, int); | ||||
extern int linux_wait_for_timeout_common(struct completion *, int, int); | extern int linux_wait_for_timeout_common(struct completion *, int, int); | ||||
extern int linux_try_wait_for_completion(struct completion *); | extern int linux_try_wait_for_completion(struct completion *); | ||||
extern int linux_completion_done(struct completion *); | extern int linux_completion_done(struct completion *); | ||||
#endif /* _LINUX_COMPLETION_H_ */ | #endif /* _LINUXKPI_LINUX_COMPLETION_H_ */ |