diff options
Diffstat (limited to 'kernel/drivers/staging/unisys/include/uisthread.h')
-rw-r--r-- | kernel/drivers/staging/unisys/include/uisthread.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/kernel/drivers/staging/unisys/include/uisthread.h b/kernel/drivers/staging/unisys/include/uisthread.h new file mode 100644 index 000000000..52c3eb4de --- /dev/null +++ b/kernel/drivers/staging/unisys/include/uisthread.h @@ -0,0 +1,42 @@ +/* uisthread.h + * + * Copyright (C) 2010 - 2013 UNISYS CORPORATION + * All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or (at + * your option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, GOOD TITLE or + * NON INFRINGEMENT. See the GNU General Public License for more + * details. + */ + +/*****************************************************************************/ +/* Unisys thread utilities header */ +/*****************************************************************************/ + +#ifndef __UISTHREAD_H__ +#define __UISTHREAD_H__ + +#include "linux/completion.h" + +struct uisthread_info { + struct task_struct *task; + int id; + struct completion has_stopped; +}; + +/* returns 0 for failure, 1 for success */ +int uisthread_start( + struct uisthread_info *thrinfo, + int (*threadfn)(void *), + void *thrcontext, + char *name); + +void uisthread_stop(struct uisthread_info *thrinfo); + +#endif /* __UISTHREAD_H__ */ |