123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123 |
- #ifndef _UIO_H_
- #define _UIO_H_
- #include <kern/iovec.h>
- enum uio_rw {
- UIO_READ,
- UIO_WRITE,
- };
- enum uio_seg {
- UIO_USERISPACE,
- UIO_USERSPACE,
- UIO_SYSSPACE,
- };
- struct uio {
- struct iovec *uio_iov;
- unsigned uio_iovcnt;
- off_t uio_offset;
- size_t uio_resid;
- enum uio_seg uio_segflg;
- enum uio_rw uio_rw;
- struct addrspace *uio_space;
- };
- int uiomove(void *kbuffer, size_t len, struct uio *uio);
- int uiomovezeros(size_t len, struct uio *uio);
- void uio_kinit(struct iovec *, struct uio *,
- void *kbuf, size_t len, off_t pos, enum uio_rw rw);
- #endif
|