|
iPXE
|
iPXE user access API for Linux More...
Go to the source code of this file.
Macros | |
| #define | UACCESS_PREFIX_linux __linux_ |
Functions | |
| FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
| static __always_inline physaddr_t | UACCESS_INLINE (linux, virt_to_phys)(volatile const void *virt) |
| Convert virtual address to physical address. More... | |
| static __always_inline void * | UACCESS_INLINE (linux, phys_to_virt)(physaddr_t phys) |
| Convert physical address to virtual address. More... | |
iPXE user access API for Linux
We have no concept of the underlying physical addresses, since these are not exposed to userspace. We provide a stub implementation of virt_to_phys() since this is required by the heap allocator to determine physical address alignment. We provide a matching stub implementation of phys_to_virt().
Definition in file linux_uaccess.h.
| #define UACCESS_PREFIX_linux __linux_ |
Definition at line 20 of file linux_uaccess.h.
| FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
|
inlinestatic |
Convert virtual address to physical address.
| virt | Virtual address |
| phys | Physical address |
Definition at line 30 of file linux_uaccess.h.
|
inlinestatic |
Convert physical address to virtual address.
| phys | Physical address |
| virt | Virtual address |
Definition at line 51 of file linux_uaccess.h.
References phys.
1.8.15