Lines Matching refs:uio_t
99 uiomove(const char * cp, int n, uio_t uio)
375 uwritec(uio_t uio)
453 * uio_resid - return the residual IO value for the given uio_t
455 user_ssize_t uio_resid( uio_t a_uio )
459 printf("%s :%d - invalid uio_t\n", __FILE__, __LINE__);
482 * uio_setresid - set the residual IO value for the given uio_t
484 void uio_setresid( uio_t a_uio, user_ssize_t a_value )
488 panic("%s :%d - invalid uio_t\n", __FILE__, __LINE__);
514 * with the given uio_t. May return 0.
516 user_addr_t uio_curriovbase( uio_t a_uio )
520 panic("%s :%d - invalid uio_t\n", __FILE__, __LINE__);
537 * with the given uio_t.
539 user_size_t uio_curriovlen( uio_t a_uio )
543 panic("%s :%d - invalid uio_t\n", __FILE__, __LINE__);
559 * with the given uio_t.
561 __private_extern__ void uio_setcurriovlen( uio_t a_uio, user_size_t a_value )
565 panic("%s :%d - invalid uio_t\n", __FILE__, __LINE__);
588 * uio_iovcnt - return count of active iovecs for the given uio_t
590 int uio_iovcnt( uio_t a_uio )
594 panic("%s :%d - invalid uio_t\n", __FILE__, __LINE__);
606 * uio_offset - return the current offset value for the given uio_t
608 off_t uio_offset( uio_t a_uio )
612 panic("%s :%d - invalid uio_t\n", __FILE__, __LINE__);
623 * uio_setoffset - set the current offset value for the given uio_t
625 void uio_setoffset( uio_t a_uio, off_t a_offset )
629 panic("%s :%d - invalid uio_t\n", __FILE__, __LINE__);
641 * uio_rw - return the read / write flag for the given uio_t
643 int uio_rw( uio_t a_uio )
647 panic("%s :%d - invalid uio_t\n", __FILE__, __LINE__);
658 * uio_setrw - set the read / write flag for the given uio_t
660 void uio_setrw( uio_t a_uio, int a_value )
664 panic("%s :%d - invalid uio_t\n", __FILE__, __LINE__);
685 int uio_isuserspace( uio_t a_uio )
689 panic("%s :%d - invalid uio_t\n", __FILE__, __LINE__);
702 * uio_create - create an uio_t.
703 * Space is allocated to hold up to a_iovcount number of iovecs. The uio_t
707 uio_t uio_create( int a_iovcount, /* number of iovecs */
714 uio_t my_uio;
725 /* leave a note that we allocated this uio_t */
737 * uio_createwithbuffer - create an uio_t.
738 * Create a uio_t using the given buffer. The uio_t
743 __private_extern__ uio_t
748 void *a_buf_p, /* pointer to a uio_t buffer */
749 int a_buffer_size ) /* size of uio_t buffer */
751 uio_t my_uio = (uio_t) a_buf_p;
765 panic("%s :%d - could not allocate uio_t\n", __FILE__, __LINE__);
781 /* we use uio_segflg to indicate if the uio_t is the new format or */
814 * uio_spacetype - return the address space type for the given uio_t
816 int uio_spacetype( uio_t a_uio )
820 panic("%s :%d - invalid uio_t\n", __FILE__, __LINE__);
829 * uio_iovsaddr - get the address of the iovec array for the given uio_t.
835 struct user_iovec * uio_iovsaddr( uio_t a_uio )
854 * uio_reset - reset an uio_t.
855 * Reset the given uio_t to initial values. The uio_t is not fully initialized
860 void uio_reset( uio_t a_uio,
871 panic("%s :%d - could not allocate uio_t\n", __FILE__, __LINE__);
907 * uio_free - free a uio_t allocated via uio_init. this also frees all
910 void uio_free( uio_t a_uio )
914 panic("%s :%d - passing NULL uio_t\n", __FILE__, __LINE__);
930 * uio_addiov - add an iovec to the given uio_t. You may call this up to
932 * increment the residual IO count as iovecs are added to the uio_t.
935 int uio_addiov( uio_t a_uio, user_addr_t a_baseaddr, user_size_t a_length )
941 panic("%s :%d - invalid uio_t\n", __FILE__, __LINE__);
977 * uio_getiov - get iovec data associated with the given uio_t. Use
978 * a_index to iterate over each iovec (0 to (uio_iovcnt(uio_t) - 1)).
980 * returns -1 when a_index is >= uio_t.uio_iovcnt or invalid uio_t.
983 int uio_getiov( uio_t a_uio,
990 panic("%s :%d - invalid uio_t\n", __FILE__, __LINE__);
1020 * uio_t and calculates (and sets) the residual IO count.
1022 __private_extern__ void uio_calculateresid( uio_t a_uio )
1028 panic("%s :%d - invalid uio_t\n", __FILE__, __LINE__);
1079 * uio_update - update the given uio_t for a_count of completed IO.
1087 void uio_update( uio_t a_uio, user_size_t a_count )
1091 panic("%s :%d - invalid uio_t\n", __FILE__, __LINE__);
1193 * uio_duplicate - allocate a new uio and make a copy of the given uio_t.
1196 uio_t uio_duplicate( uio_t a_uio )
1198 uio_t my_uio;
1205 my_uio = (uio_t) kalloc(a_uio->uio_size);