Searched refs:nvram_fd (Results 1 - 1 of 1) sorted by relevance
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/router/nvram/ |
H A D | nvram_linux.c | 87 static int nvram_fd = -1; variable 93 if (nvram_fd >= 0) 96 if ((nvram_fd = open(PATH_DEV_NVRAM, O_RDWR)) < 0) 100 if ((nvram_buf = mmap(NULL, NVRAM_SPACE, PROT_READ, MAP_SHARED, nvram_fd, 0)) == MAP_FAILED) { 101 close(nvram_fd); 102 nvram_fd = -1; 131 count = read(nvram_fd, off, count); 152 if (nvram_fd < 0) 162 ret = read(nvram_fd, buf, count); 194 ret = write(nvram_fd, bu [all...] |
Completed in 88 milliseconds