Home
last modified time | relevance | path

Searched refs:swapFd (Results 1 – 1 of 1) sorted by relevance

/openthread-3.4.0/src/posix/platform/
Dsettings.cpp390 int swapFd = -1; in PlatformSettingsSet() local
392 switch (PlatformSettingsDelete(aInstance, aKey, -1, &swapFd)) in PlatformSettingsSet()
403 VerifyOrDie(write(swapFd, &aKey, sizeof(aKey)) == sizeof(aKey) && in PlatformSettingsSet()
404 write(swapFd, &aValueLength, sizeof(aValueLength)) == sizeof(aValueLength) && in PlatformSettingsSet()
405 write(swapFd, aValue, aValueLength) == aValueLength, in PlatformSettingsSet()
408 swapPersist(aInstance, swapFd); in PlatformSettingsSet()
414 int swapFd = swapOpen(aInstance); in PlatformSettingsAdd() local
419 swapWrite(aInstance, swapFd, static_cast<uint16_t>(size)); in PlatformSettingsAdd()
422 VerifyOrDie(write(swapFd, &aKey, sizeof(aKey)) == sizeof(aKey) && in PlatformSettingsAdd()
423 write(swapFd, &aValueLength, sizeof(aValueLength)) == sizeof(aValueLength) && in PlatformSettingsAdd()
[all …]