Home
last modified time | relevance | path

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

/device/linaro/dragonboard/shared/utils/rmtfs/
Dstorage.c31 void *shadow_buf; member
70 rmtfds[i].shadow_buf = NULL; in storage_init()
99 if ((rmtfds[i].fd != -1 || rmtfds[i].shadow_buf) && in storage_open()
106 if (rmtfds[i].fd == -1 && !rmtfds[i].shadow_buf) { in storage_open()
159 free(rmtfd->shadow_buf); in storage_close()
160 rmtfd->shadow_buf = NULL; in storage_close()
207 memcpy(buf, (char*)rmtfd->shadow_buf + offset, n); in storage_pread()
233 new_buf = realloc(rmtfd->shadow_buf, new_len); in storage_pwrite()
239 rmtfd->shadow_buf = new_buf; in storage_pwrite()
243 memcpy((char*)rmtfd->shadow_buf + offset, buf, nbyte); in storage_pwrite()
[all …]