|
iPXE
|
Access to external ("user") memory. More...
#include <stdint.h>#include <ipxe/api.h>#include <config/ioapi.h>#include <ipxe/virt_offset.h>#include <ipxe/linux/linux_uaccess.h>#include <bits/uaccess.h>Go to the source code of this file.
Macros | |
| #define | UACCESS_PREFIX_flat __flat_ |
| #define | UACCESS_INLINE(_subsys, _api_func) SINGLE_API_INLINE ( UACCESS_PREFIX_ ## _subsys, _api_func ) |
| Calculate static inline user access API function name. More... | |
| #define | PROVIDE_UACCESS(_subsys, _api_func, _func) PROVIDE_SINGLE_API ( UACCESS_PREFIX_ ## _subsys, _api_func, _func ) |
| Provide an user access API implementation. More... | |
| #define | PROVIDE_UACCESS_INLINE(_subsys, _api_func) PROVIDE_SINGLE_API_INLINE ( UACCESS_PREFIX_ ## _subsys, _api_func ) |
| Provide a static inline user access API implementation. More... | |
Functions | |
| FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
| static __always_inline void * | UACCESS_INLINE (flat, phys_to_virt)(physaddr_t phys) |
| static __always_inline physaddr_t | UACCESS_INLINE (flat, virt_to_phys)(volatile const void *virt) |
| physaddr_t | __attribute__ ((const)) virt_to_phys(volatile const void *virt) |
| Convert virtual address to a physical address. More... | |
Access to external ("user") memory.
Definition in file uaccess.h.
| #define UACCESS_INLINE | ( | _subsys, | |
| _api_func | |||
| ) | SINGLE_API_INLINE ( UACCESS_PREFIX_ ## _subsys, _api_func ) |
| #define PROVIDE_UACCESS | ( | _subsys, | |
| _api_func, | |||
| _func | |||
| ) | PROVIDE_SINGLE_API ( UACCESS_PREFIX_ ## _subsys, _api_func, _func ) |
| #define PROVIDE_UACCESS_INLINE | ( | _subsys, | |
| _api_func | |||
| ) | PROVIDE_SINGLE_API_INLINE ( UACCESS_PREFIX_ ## _subsys, _api_func ) |
| FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
|
inlinestatic |
|
inlinestatic |
| physaddr_t __attribute__ | ( | (const) | ) | const volatile |
Convert virtual address to a physical address.
Convert physical address to a virtual address.
| virt | Virtual address |
| phys | Physical address |
| phys | Physical address |
| virt | Virtual address |
This operation is not available under all memory models.
1.8.15