uio.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. #ifndef _OCF_UIO_H_
  2. #define _OCF_UIO_H_
  3. #include <linux/uio.h>
  4. /*
  5. * The linux uio.h doesn't have all we need. To be fully api compatible
  6. * with the BSD cryptodev, we need to keep this around. Perhaps this can
  7. * be moved back into the linux/uio.h
  8. *
  9. * Linux port done by David McCullough <david_mccullough@mcafee.com>
  10. * Copyright (C) 2006-2010 David McCullough
  11. * Copyright (C) 2004-2005 Intel Corporation.
  12. *
  13. * LICENSE TERMS
  14. *
  15. * The free distribution and use of this software in both source and binary
  16. * form is allowed (with or without changes) provided that:
  17. *
  18. * 1. distributions of this source code include the above copyright
  19. * notice, this list of conditions and the following disclaimer;
  20. *
  21. * 2. distributions in binary form include the above copyright
  22. * notice, this list of conditions and the following disclaimer
  23. * in the documentation and/or other associated materials;
  24. *
  25. * 3. the copyright holder's name is not used to endorse products
  26. * built using this software without specific written permission.
  27. *
  28. * ALTERNATIVELY, provided that this notice is retained in full, this product
  29. * may be distributed under the terms of the GNU General Public License (GPL),
  30. * in which case the provisions of the GPL apply INSTEAD OF those given above.
  31. *
  32. * DISCLAIMER
  33. *
  34. * This software is provided 'as is' with no explicit or implied warranties
  35. * in respect of its properties, including, but not limited to, correctness
  36. * and/or fitness for purpose.
  37. * ---------------------------------------------------------------------------
  38. */
  39. struct uio {
  40. struct iovec *uio_iov;
  41. int uio_iovcnt;
  42. off_t uio_offset;
  43. int uio_resid;
  44. #if 0
  45. enum uio_seg uio_segflg;
  46. enum uio_rw uio_rw;
  47. struct thread *uio_td;
  48. #endif
  49. };
  50. #endif