Fetch all of the low level details of a mapped clock‘s current state. Behaves identically to a call to zx_clock_get_details(), however it operates on a mapped clock’s state instead of a clock handle, and may offer performance benefits as it usually does not need to enter the Zircon kernel in order to perform the observation. See mappable clocks for more details.
#include <zircon/syscalls.h> zx_status_t zx_clock_get_details_mapped(const void* clock_addr, uint64_t options, void* details);
No handle is needed in order to perform a successful observation, therefore no specific handle rights are needed either. Instead, the user must provide the virtual address of a currently valid clock state mapping, established using zx_vmar_map_clock()
Fetches the fine grained details of the mapped clock's state. See clocks Please refer to the current description of zx_clock_get_details() for more information, including an example.
On success, returns ZX_OK along with clock details stored in the details out parameter.
Any attempt to pass a virtual pointer for clock_addr which was:
zx_clock_map().Will result in undefined behavior.