Searched refs:mem_fd (Results 1 - 2 of 2) sorted by relevance
/freebsd-11-stable/tools/tools/pciroms/ |
H A D | pciroms.c | 305 int fd, mem_fd, err; local 308 fd = err = mem_fd = -1; 311 if ((mem_fd = open(_PATH_DEVMEM, O_RDONLY)) == -1) { 317 mem_fd, base_addr); 337 if (mem_fd != -1) 338 close(mem_fd);
|
/freebsd-11-stable/tools/tools/pirtool/ |
H A D | pirtool.c | 68 int mem_fd = -1; local 90 if ((mem_fd = open(_PATH_DEVMEM, O_RDONLY)) == -1) { 94 map_addr = mmap(NULL, PIR_SIZE, PROT_READ, MAP_SHARED, mem_fd, 113 if (mem_fd != -1) 114 close(mem_fd);
|
Completed in 110 milliseconds