Searched refs:mem_fd (Results 1 - 2 of 2) sorted by relevance

/freebsd-13-stable/tools/tools/pciroms/
H A Dpciroms.c305 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-13-stable/tools/tools/pirtool/
H A Dpirtool.c70 int mem_fd = -1; local
92 if ((mem_fd = open(_PATH_DEVMEM, O_RDONLY)) == -1) {
96 map_addr = mmap(NULL, PIR_SIZE, PROT_READ, MAP_SHARED, mem_fd,
115 if (mem_fd != -1)
116 close(mem_fd);

Completed in 184 milliseconds