iPXE
|
iPXE user access API for Linux More...
Go to the source code of this file.
Macros | |
#define | UACCESS_PREFIX_linux __linux_ |
Variables | |
static __always_inline unsigned long off_t | offset |
static __always_inline off_t userptr_t | subtrahend |
static __always_inline void off_t | dest_off |
static __always_inline void off_t userptr_t | src |
static __always_inline void off_t userptr_t off_t | src_off |
static __always_inline void off_t userptr_t off_t size_t | len |
static __always_inline int off_t | first_off |
static __always_inline int off_t userptr_t | second |
static __always_inline int off_t userptr_t off_t | second_off |
static __always_inline void off_t int | c |
iPXE user access API for Linux
We run with no distinction between internal and external addresses, so can use trivial_virt_to_user() et al.
We have no concept of the underlying physical addresses, since these are not exposed to userspace. We provide a stub implementation of user_to_phys() since this is required by alloc_memblock(). We provide no implementation of phys_to_user(); any code attempting to access physical addresses will therefore (correctly) fail to link.
Definition in file linux_uaccess.h.
#define UACCESS_PREFIX_linux __linux_ |
Definition at line 24 of file linux_uaccess.h.
FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
|
inlinestatic |
Convert user pointer to physical address.
userptr | User pointer |
offset | Offset from user pointer |
phys_addr | Physical address |
|
inlinestatic |
Convert physical address to user pointer.
phys_addr | Physical address |
userptr | User pointer |
Definition at line 56 of file linux_uaccess.h.
|
inlinestatic |
Definition at line 63 of file linux_uaccess.h.
References addr, and trivial_virt_to_user().
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
__always_inline off_t off_t offset |
Definition at line 35 of file linux_uaccess.h.
__always_inline off_t userptr_t subtrahend |
Definition at line 79 of file linux_uaccess.h.
__always_inline void off_t dest_off |
Definition at line 84 of file linux_uaccess.h.
__always_inline void off_t userptr_t src |
Definition at line 84 of file linux_uaccess.h.
__always_inline void off_t userptr_t off_t src_off |
Definition at line 84 of file linux_uaccess.h.
__always_inline off_t off_t int size_t len |
Definition at line 86 of file linux_uaccess.h.
__always_inline int off_t first_off |
Definition at line 98 of file linux_uaccess.h.
__always_inline int off_t userptr_t second |
Definition at line 98 of file linux_uaccess.h.
__always_inline int off_t userptr_t off_t second_off |
Definition at line 98 of file linux_uaccess.h.
__always_inline off_t off_t int c |
Definition at line 105 of file linux_uaccess.h.