mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 02:27:36 +03:00
Add some typedefs to make it clearer when we passing a function,
Add fm_panic define Add another bad atomic hack (need to do this right) git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@35 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c
This commit is contained in:
@@ -59,7 +59,7 @@ EXPORT_SYMBOL(__thread_exit);
|
||||
* allocate memory. This is preferable to returning a NULL which Solaris
|
||||
* style callers likely never check for... since it can't fail. */
|
||||
kthread_t *
|
||||
__thread_create(caddr_t stk, size_t stksize, void (*proc)(void *),
|
||||
__thread_create(caddr_t stk, size_t stksize, thread_func_t func,
|
||||
void *args, size_t len, int *pp, int state, pri_t pri)
|
||||
{
|
||||
thread_priv_t tp;
|
||||
@@ -77,7 +77,7 @@ __thread_create(caddr_t stk, size_t stksize, void (*proc)(void *),
|
||||
* we're passing a stack address to a new thread but correct locking was
|
||||
* added to ensure the callee can use the data safely until wake_up(). */
|
||||
tp.tp_magic = TP_MAGIC;
|
||||
tp.tp_func = proc;
|
||||
tp.tp_func = func;
|
||||
tp.tp_args = args;
|
||||
tp.tp_len = len;
|
||||
tp.tp_state = state;
|
||||
|
||||
Reference in New Issue
Block a user