Ignore:
Timestamp:
Jan 1, 2021, 5:31:48 AM (5 years ago)
Author:
Paul Smedley
Message:

Add source for uniaud32 based on code from linux kernel 5.4.86

Location:
GPL/branches/uniaud32-next
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • GPL/branches/uniaud32-next/include/linux/uio.h

    r441 r615  
    33#ifndef _LINUX_UIO_H
    44#define _LINUX_UIO_H
     5
     6enum {
     7        ITER_IOVEC = 0,
     8        ITER_KVEC = 2,
     9        ITER_BVEC = 4,
     10};
     11
    512struct iovec {
    613        char    *iov_base;      /* Base address. */
     
    1219};
    1320
     21struct iov_iter {
     22        int type;
     23        size_t iov_offset;
     24        size_t count;
     25        union {
     26                const struct iovec *iov;
     27                const struct kvec *kvec;
     28                const struct bio_vec *bvec;
     29        };
     30        unsigned long nr_segs;
     31};
     32
     33static inline bool iter_is_iovec(const struct iov_iter *i)
     34{
     35        return !(i->type & (ITER_BVEC | ITER_KVEC));
     36}
     37
    1438#endif /* _LINUX_UIO_H */
Note: See TracChangeset for help on using the changeset viewer.