Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 156056
b: refs/heads/master
c: 812ed03
h: refs/heads/master
v: v3
  • Loading branch information
Jiri Slaby authored and Linus Torvalds committed Jul 30, 2009
1 parent c5655c3 commit 7e0afef
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8da14b5fc32368f582df09fe9c0bec2507868583
refs/heads/master: 812ed032cdc8138b7546eecc996879756b92d801
17 changes: 8 additions & 9 deletions trunk/include/linux/uio.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,20 @@ struct iovec
__kernel_size_t iov_len; /* Must be size_t (1003.1g) */
};

#ifdef __KERNEL__

struct kvec {
void *iov_base; /* and that should *never* hold a userland pointer */
size_t iov_len;
};

#endif

/*
* UIO_MAXIOV shall be at least 16 1003.1g (5.4.1.1)
*/

#define UIO_FASTIOV 8
#define UIO_MAXIOV 1024

#ifdef __KERNEL__

struct kvec {
void *iov_base; /* and that should *never* hold a userland pointer */
size_t iov_len;
};

/*
* Total number of bytes covered by an iovec.
*
Expand All @@ -53,5 +51,6 @@ static inline size_t iov_length(const struct iovec *iov, unsigned long nr_segs)
}

unsigned long iov_shorten(struct iovec *iov, unsigned long nr_segs, size_t to);
#endif

#endif

0 comments on commit 7e0afef

Please sign in to comment.