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

/freebsd-12-stable/contrib/libpcap/
H A Dpcap-usb-linux.c126 u_char *mmapbuf; /* memory-mapped region pointer */ member in struct:pcap_usb_linux
470 handlep->mmapbuf = mmap(0, handlep->mmapbuflen, PROT_READ,
472 if (handlep->mmapbuf == MAP_FAILED) {
1280 hdr = (pcap_usb_header_mmapped*) &handlep->mmapbuf[vec[i]];
1358 if (handlep->mmapbuf != NULL) {
1359 munmap(handlep->mmapbuf, handlep->mmapbuflen);
1360 handlep->mmapbuf = NULL;
H A Dpcap-linux.c316 u_char *mmapbuf; /* memory-mapped region pointer */ member in struct:pcap_linux
4813 handlep->mmapbuf = mmap(0, handlep->mmapbuflen,
4815 if (handlep->mmapbuf == MAP_FAILED) {
4840 void *base = &handlep->mmapbuf[i*req.tp_block_size];
4866 if (handlep->mmapbuf) {
4868 (void)munmap(handlep->mmapbuf, handlep->mmapbuflen);
4869 handlep->mmapbuf = NULL;

Completed in 118 milliseconds