Scroll to navigation

WAIT_FOR_COMPLETION_(9) Driver Basics WAIT_FOR_COMPLETION_(9)

NAME

wait_for_completion_killable - waits for completion of a task (killable)

SYNOPSIS

int __sched wait_for_completion_killable(struct completion * x);

ARGUMENTS

x
holds the state of this particular completion

DESCRIPTION

This waits to be signaled for completion of a specific task. It can be interrupted by a kill signal.
The return value is -ERESTARTSYS if interrupted, 0 if completed.

COPYRIGHT

March 2016 Kernel Hackers Manual 3.2.