Searched defs:mmapbuf (Results 1 - 2 of 2) sorted by path

/external/libpcap/
H A Dpcap-linux.c302 u_char *mmapbuf; /* memory-mapped region pointer */ member in struct:pcap_linux
3887 handlep->mmapbuf = mmap(0, handlep->mmapbuflen,
3889 if (handlep->mmapbuf == MAP_FAILED) {
3915 void *base = &handlep->mmapbuf[i*req.tp_block_size];
3940 if (handlep->mmapbuf) {
3942 munmap(handlep->mmapbuf, handlep->mmapbuflen);
3943 handlep->mmapbuf = NULL;
H A Dpcap-usb-linux.c128 u_char *mmapbuf; /* memory-mapped region pointer */ member in struct:pcap_usb_linux
223 handlep->mmapbuf = mmap(0, handlep->mmapbuflen, PROT_READ,
225 return handlep->mmapbuf != MAP_FAILED;
886 hdr = (pcap_usb_header*) &handlep->mmapbuf[vec[i]];
927 if (handlep->mmapbuf != NULL) {
928 munmap(handlep->mmapbuf, handlep->mmapbuflen);
929 handlep->mmapbuf = NULL;

Completed in 210 milliseconds