• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.5.8/xnu-1228.15.4/bsd/kern/

Lines Matching refs:aiocbp

161 									 		 user_addr_t aiocbp,
167 user_addr_t aiocbp,
176 user_addr_t aiocbp );
178 user_addr_t aiocbp,
183 user_addr_t aiocbp,
223 * outstanding against file descriptor uap->fd. If uap->aiocbp is not
224 * NULL then only one specific IO is cancelled (if possible). If uap->aiocbp
236 (int)p, (int)uap->aiocbp, 0, 0, 0 );
249 if ( uap->aiocbp != USER_ADDR_NULL ) {
253 result = copyin( uap->aiocbp, &aiocb32, sizeof(aiocb32) );
257 result = copyin( uap->aiocbp, &my_aiocb, sizeof(my_aiocb) );
273 result = do_aio_cancel( p, uap->fd, uap->aiocbp, FALSE, FALSE );
285 (int)p, (int)uap->aiocbp, result, 0, 0 );
341 * request referred to by uap->aiocbp. The error status is the errno
353 (int)p, (int)uap->aiocbp, 0, 0, 0 );
365 if ( entryp->uaiocbp == uap->aiocbp ) {
369 (int)p, (int)uap->aiocbp, *retval, 0, 0 );
376 if ( entryp->uaiocbp == uap->aiocbp ) {
380 (int)p, (int)uap->aiocbp, *retval, 0, 0 );
387 if ( p == entryp->procp && entryp->uaiocbp == uap->aiocbp ) {
391 (int)p, (int)uap->aiocbp, *retval, 0, 0 );
399 (int)p, (int)uap->aiocbp, error, 0, 0 );
409 * with the file indicated by the file descriptor (uap->aiocbp->aio_fildes) and
422 (int)p, (int)uap->aiocbp, uap->op, 0, 0 );
438 error = aio_queue_async_request( p, uap->aiocbp, fsync_kind );
444 (int)p, (int)uap->aiocbp, error, 0, 0 );
451 /* aio_read - asynchronously read uap->aiocbp->aio_nbytes bytes from the
452 * file descriptor (uap->aiocbp->aio_fildes) into the buffer
453 * (uap->aiocbp->aio_buf).
462 (int)p, (int)uap->aiocbp, 0, 0, 0 );
466 error = aio_queue_async_request( p, uap->aiocbp, AIO_READ );
471 (int)p, (int)uap->aiocbp, error, 0, 0 );
480 * request referred to by uap->aiocbp. The return status is the value
494 (int)p, (int)uap->aiocbp, 0, 0, 0 );
508 if ( entryp->uaiocbp == uap->aiocbp ) {
530 (int)p, (int)uap->aiocbp, *retval, 0, 0 );
537 if ( entryp->uaiocbp == uap->aiocbp ) {
540 (int)p, (int)uap->aiocbp, *retval, 0, 0 );
547 if ( p == entryp->procp && entryp->uaiocbp == uap->aiocbp ) {
550 (int)p, (int)uap->aiocbp, *retval, 0, 0 );
560 (int)p, (int)uap->aiocbp, error, 0, 0 );
682 * fd is 0 and aiocbp is NULL 2) cancel all async IOs for file descriptor - fd
683 * is > 0 and aiocbp is NULL 3) cancel one async IO associated with the given
684 * aiocbp.
689 * WARNING - do not deference aiocbp in this routine, it may point to user
694 do_aio_cancel(proc_t p, int fd, user_addr_t aiocbp,
710 if ( (aiocbp == USER_ADDR_NULL && fd == 0) ||
711 (aiocbp != USER_ADDR_NULL && entryp->uaiocbp == aiocbp) ||
712 (aiocbp == USER_ADDR_NULL && fd == entryp->aiocb.aio_fildes) ) {
748 if ( aiocbp != USER_ADDR_NULL ) {
773 if ( (aiocbp == USER_ADDR_NULL && fd == 0) ||
774 (aiocbp != USER_ADDR_NULL && entryp->uaiocbp == aiocbp) ||
775 (aiocbp == USER_ADDR_NULL && fd == entryp->aiocb.aio_fildes) ) {
792 if ( aiocbp != USER_ADDR_NULL ) {
806 if ( (aiocbp == USER_ADDR_NULL && fd == 0) ||
807 (aiocbp != USER_ADDR_NULL && entryp->uaiocbp == aiocbp) ||
808 (aiocbp == USER_ADDR_NULL && fd == entryp->aiocb.aio_fildes) ) {
818 if ( aiocbp != USER_ADDR_NULL ) {
832 if ( (aiocbp == USER_ADDR_NULL && fd == 0) ||
833 (aiocbp != USER_ADDR_NULL && entryp->uaiocbp == aiocbp) ||
834 (aiocbp == USER_ADDR_NULL && fd == entryp->aiocb.aio_fildes) ) {
840 if ( aiocbp != USER_ADDR_NULL ) {
960 user_addr_t aiocbp;
963 aiocbp = *(aiocbpp + i);
964 if ( aiocbp == USER_ADDR_NULL )
969 if ( entryp->uaiocbp == aiocbp ) {
996 * same process we head back up to make sure this is for the correct aiocbp.
997 * If it is the correct aiocbp we will return from where we do the check
998 * (see entryp->uaiocbp == aiocbp after check_for_our_aiocbp label)
1024 /* aio_write - asynchronously write uap->aiocbp->aio_nbytes bytes to the
1025 * file descriptor (uap->aiocbp->aio_fildes) from the buffer
1026 * (uap->aiocbp->aio_buf).
1037 (int)p, (int)uap->aiocbp, 0, 0, 0 );
1039 error = aio_queue_async_request( p, uap->aiocbp, AIO_WRITE );
1044 (int)p, (int)uap->aiocbp, error, 0, 0 );
1466 aio_queue_async_request(proc_t procp, user_addr_t aiocbp, int kindOfIO )
1480 entryp->uaiocbp = aiocbp;
1487 result = copyin( aiocbp, &aiocb32, sizeof(aiocb32) );
1491 result = copyin( aiocbp, &entryp->aiocb, sizeof(entryp->aiocb) );
1542 (int)procp, (int)aiocbp, 0, 0, 0 );
1569 lio_create_async_entry(proc_t procp, user_addr_t aiocbp,
1585 entryp->uaiocbp = aiocbp;
1593 result = copyin( aiocbp, &aiocb32, sizeof(aiocb32) );
1597 result = copyin( aiocbp, &entryp->aiocb, sizeof(entryp->aiocb) );
1705 lio_create_sync_entry(proc_t procp, user_addr_t aiocbp,
1720 entryp->uaiocbp = aiocbp;
1728 result = copyin( aiocbp, &aiocb32, sizeof(aiocb32) );
1732 result = copyin( aiocbp, &entryp->aiocb, sizeof(entryp->aiocb) );
2170 * aiocbp / process is there. Returns TRUE if there is a match
2177 user_addr_t aiocbp )
2186 if ( aiocbp == entryp->uaiocbp ) {
2194 if ( aiocbp == entryp->uaiocbp ) {
2202 if ( procp == entryp->procp && aiocbp == entryp->uaiocbp ) {
2210 if ( procp == entryp->procp && aiocbp == entryp->uaiocbp ) {