clang-format

This commit is contained in:
2024-09-10 13:03:02 -04:00
parent 53c617d779
commit d66450e427
381 changed files with 28864 additions and 34170 deletions

View File

@@ -59,28 +59,27 @@
/* Direction. */
enum uio_rw {
UIO_READ, /* From kernel to uio_seg */
UIO_WRITE, /* From uio_seg to kernel */
UIO_READ, /* From kernel to uio_seg */
UIO_WRITE, /* From uio_seg to kernel */
};
/* Source/destination. */
enum uio_seg {
UIO_USERISPACE, /* User process code. */
UIO_USERSPACE, /* User process data. */
UIO_SYSSPACE, /* Kernel. */
UIO_USERISPACE, /* User process code. */
UIO_USERSPACE, /* User process data. */
UIO_SYSSPACE, /* Kernel. */
};
struct uio {
struct iovec *uio_iov; /* Data blocks */
unsigned uio_iovcnt; /* Number of iovecs */
off_t uio_offset; /* Desired offset into object */
size_t uio_resid; /* Remaining amt of data to xfer */
enum uio_seg uio_segflg; /* What kind of pointer we have */
enum uio_rw uio_rw; /* Whether op is a read or write */
struct addrspace *uio_space; /* Address space for user pointer */
struct iovec *uio_iov; /* Data blocks */
unsigned uio_iovcnt; /* Number of iovecs */
off_t uio_offset; /* Desired offset into object */
size_t uio_resid; /* Remaining amt of data to xfer */
enum uio_seg uio_segflg; /* What kind of pointer we have */
enum uio_rw uio_rw; /* Whether op is a read or write */
struct addrspace *uio_space; /* Address space for user pointer */
};
/*
* Copy data from a kernel buffer to a data region defined by a uio struct,
* updating the uio struct's offset and resid fields. May alter the iovec
@@ -135,8 +134,7 @@ int uiomovezeros(size_t len, struct uio *uio);
* result = VOP_READ(vn, &myuio);
* ...
*/
void uio_kinit(struct iovec *, struct uio *,
void *kbuf, size_t len, off_t pos, enum uio_rw rw);
void uio_kinit(struct iovec *, struct uio *, void *kbuf, size_t len, off_t pos,
enum uio_rw rw);
#endif /* _UIO_H_ */