Lines Matching defs:fd
176 static int aio_proc_active_requests_for_file(proc_t procp, int fd);
178 static boolean_t should_cancel(aio_workq_entry *entryp, user_addr_t aiocbp, int fd);
210 static int do_aio_cancel_locked(proc_t p, int fd, user_addr_t aiocbp, int wait_for_completion, boolean_t disable_notification );
498 * outstanding against file descriptor uap->fd. If uap->aiocbp is not
545 if ( uap->fd != my_aiocb.aio_fildes ) {
552 result = do_aio_cancel_locked( p, uap->fd, uap->aiocbp, 0, FALSE );
579 _aio_close(proc_t p, int fd )
589 (int)p, fd, 0, 0, 0 );
593 error = do_aio_cancel_locked( p, fd, 0, AIO_CLOSE_WAIT, FALSE );
606 (int)p, fd, 0, 0, 0 );
608 while (aio_proc_active_requests_for_file(p, fd) > 0) {
618 (int)p, fd, 0, 0, 0 );
953 should_cancel(aio_workq_entry *entryp, user_addr_t aiocbp, int fd)
955 if ( (aiocbp == USER_ADDR_NULL && fd == 0) ||
957 (aiocbp == USER_ADDR_NULL && fd == entryp->aiocb.aio_fildes) ) {
968 * fd is 0 and aiocbp is NULL 2) cancel all async IOs for file descriptor - fd
981 do_aio_cancel_locked(proc_t p, int fd, user_addr_t aiocbp,
998 if (!should_cancel(entryp, aiocbp, fd)) {
1015 (int)entryp->procp, (int)entryp->uaiocbp, fd, 0, 0 );
1046 (int)entryp->procp, (int)entryp->uaiocbp, fd, 0, 0 );
1068 if (should_cancel(entryp, aiocbp, fd)) {
1071 (int)entryp->procp, (int)entryp->uaiocbp, fd, 0, 0 );
2434 aio_proc_active_requests_for_file(proc_t procp, int fd)
2439 if (entryp->aiocb.aio_fildes == fd) {