Home
last modified time | relevance | path

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

/external/libpcap/
Dpcap-usb-linux.c128 u_char *mmapbuf; /* memory-mapped region pointer */ member
223 handlep->mmapbuf = mmap(0, handlep->mmapbuflen, PROT_READ, in usb_mmap()
225 return handlep->mmapbuf != MAP_FAILED; in usb_mmap()
886 hdr = (pcap_usb_header*) &handlep->mmapbuf[vec[i]]; in usb_read_linux_mmap()
927 if (handlep->mmapbuf != NULL) { in usb_cleanup_linux_mmap()
928 munmap(handlep->mmapbuf, handlep->mmapbuflen); in usb_cleanup_linux_mmap()
929 handlep->mmapbuf = NULL; in usb_cleanup_linux_mmap()
Dpcap-linux.c302 u_char *mmapbuf; /* memory-mapped region pointer */ member
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;