| 999 | } |
| 1000 | |
| 1001 | static bool |
| 1002 | aio_set_cancel_function_locked(struct kaiocb *job, aio_cancel_fn_t *func) |
| 1003 | { |
| 1004 | |
| 1005 | AIO_LOCK_ASSERT(job->userproc->p_aioinfo, MA_OWNED); |
| 1006 | if (job->jobflags & KAIOCB_CANCELLED) |
| 1007 | return (false); |
| 1008 | job->cancel_fn = func; |
| 1009 | return (true); |
| 1010 | } |
| 1011 | |
| 1012 | bool |
| 1013 | aio_set_cancel_function(struct kaiocb *job, aio_cancel_fn_t *func) |
no outgoing calls
no test coverage detected