You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

uaccess.h 829B

123456789101112131415161718192021222324252627
  1. #ifndef _GPXE_UACCESS_H
  2. #define _GPXE_UACCESS_H
  3. /**
  4. * @file
  5. *
  6. * Access to external ("user") memory
  7. *
  8. * gPXE often needs to transfer data between internal and external
  9. * buffers. On i386, the external buffers may require access via a
  10. * different segment, and the buffer address cannot be encoded into a
  11. * simple void * pointer. The @c userptr_t type encapsulates the
  12. * information needed to identify an external buffer, and the
  13. * copy_to_user() and copy_from_user() functions provide methods for
  14. * transferring data between internal and external buffers.
  15. *
  16. * Note that userptr_t is an opaque type; in particular, performing
  17. * arithmetic upon a userptr_t is not allowed.
  18. *
  19. */
  20. #include <bits/uaccess.h>
  21. /** Equivalent of NULL for user pointers */
  22. #define UNULL ( ( userptr_t ) 0 )
  23. #endif /* _GPXE_UACCESS_H */