MCPcopy Create free account
hub / github.com/Bareflank/hypervisor / platform_memset

Function platform_memset

loader/linux/src/platform.c:222–228  ·  view source on GitHub ↗

* <!-- description --> * @brief Sets "num" bytes in the memory pointed to by "ptr" to "val". * If the provided parameters are valid, returns 0, otherwise * returns LOADER_FAILURE. * * <!-- inputs/outputs --> * @param pmut_ptr a pointer to the memory to set * @param val the value to set each byte to * @param num the number of bytes in "ptr" to set to "val". */

Source from the content-addressed store, hash-verified

220 * @param num the number of bytes in "ptr" to set to "val".
221 */
222void
223platform_memset(
224 void *const pmut_ptr, uint8_t const val, uint64_t const num) NOEXCEPT
225{
226 platform_expects(NULLPTR != pmut_ptr);
227 memset(pmut_ptr, val, num);
228}
229
230/**
231 * <!-- description -->

Callers

nothing calls this directly

Calls 1

platform_expectsFunction · 0.70

Tested by

no test coverage detected