diff options
Diffstat (limited to 'src/include/gpxe/uaccess.h')
-rw-r--r-- | src/include/gpxe/uaccess.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/include/gpxe/uaccess.h b/src/include/gpxe/uaccess.h new file mode 100644 index 00000000..38853bfb --- /dev/null +++ b/src/include/gpxe/uaccess.h @@ -0,0 +1,24 @@ +#ifndef _GPXE_UACCESS_H +#define _GPXE_UACCESS_H + +/** + * @file + * + * Access to external ("user") memory + * + * gPXE often needs to transfer data between internal and external + * buffers. On i386, the external buffers may require access via a + * different segment, and the buffer address cannot be encoded into a + * simple void * pointer. The @c userptr_t type encapsulates the + * information needed to identify an external buffer, and the + * copy_to_user() and copy_from_user() functions provide methods for + * transferring data between internal and external buffers. + * + * Note that userptr_t is an opaque type; in particular, performing + * arithmetic upon a userptr_t is not allowed. + * + */ + +#include <bits/uaccess.h> + +#endif /* _GPXE_UACCESS_H */ |