com.silver-tree.ide-plugin/samples/include/linux/uio.h
/*
 * Total number of bytes covered by an iovec.
 *
 * NOTE that it is not safe to use this function until all the iovec's
 * segment lengths have been validated.  Because the individual lengths can
 * overflow a size_t when added together.
 */
Total number of bytes covered by an iovec.
NOTE that it is not safe to use this function until all the iovec's
segment lengths have been validated.  Because the individual lengths can
overflow a size_t when added together.
Total number of bytes covered by an iovec . NOTE that it is not safe to use this function until all the iovec ' s segment lengths have been validated . Because the individual lengths can overflow a size_t when added together .
static inline size_t iov_length(const struct iovec *iov, unsigned long nr_segs)
{
	unsigned long seg;
	size_t ret = 0;
	for (seg = 0; seg < nr_segs; seg++)
		ret += iov[seg].iov_len;
	return ret;
}
static inline size_t iov_length ( const struct iovec * iov , unsigned long nr_segs ) { unsigned long seg ; size_t ret = 0 ; for ( seg = 0 ; seg < nr_segs ; seg ++ ) ret += iov [ seg ] . iov_len ; return ret ; }
Total number of bytes covered by an iovec.
Total number of bytes covered by an iovec .