Home
last modified time | relevance | path

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

/external/libpcap/
Dpcap-usb-linux.c125 u_char *mmapbuf; /* memory-mapped region pointer */ member
392 handlep->mmapbuf = mmap(0, handlep->mmapbuflen, PROT_READ, in usb_mmap()
394 return handlep->mmapbuf != MAP_FAILED; in usb_mmap()
1148 hdr = (pcap_usb_header*) &handlep->mmapbuf[vec[i]]; in usb_read_linux_mmap()
1193 if (handlep->mmapbuf != NULL) { in usb_cleanup_linux_mmap()
1194 munmap(handlep->mmapbuf, handlep->mmapbuflen); in usb_cleanup_linux_mmap()
1195 handlep->mmapbuf = NULL; in usb_cleanup_linux_mmap()
Dpcap-linux.c316 u_char *mmapbuf; /* memory-mapped region pointer */ member
4622 handlep->mmapbuf = mmap(0, handlep->mmapbuflen,
4624 if (handlep->mmapbuf == MAP_FAILED) {
4649 void *base = &handlep->mmapbuf[i*req.tp_block_size];
4675 if (handlep->mmapbuf) {
4677 (void)munmap(handlep->mmapbuf, handlep->mmapbuflen);
4678 handlep->mmapbuf = NULL;