Home
last modified time | relevance | path

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

/external/libpcap/
Dpcap-usb-linux.c129 u_char *mmapbuf; /* memory-mapped region pointer */ member
305 handlep->mmapbuf = mmap(0, handlep->mmapbuflen, PROT_READ, in usb_mmap()
307 if (handlep->mmapbuf == MAP_FAILED) { in usb_mmap()
845 bp = &handlep->mmapbuf[vec[i]]; in usb_read_linux_mmap()
939 if (handlep->mmapbuf != NULL) { in usb_cleanup_linux_mmap()
940 munmap(handlep->mmapbuf, handlep->mmapbuflen); in usb_cleanup_linux_mmap()
941 handlep->mmapbuf = NULL; in usb_cleanup_linux_mmap()
Dpcap-linux.c199 u_char *mmapbuf; /* memory-mapped region pointer */ member
3255 handlep->mmapbuf = mmap(0, handlep->mmapbuflen, in create_ring()
3257 if (handlep->mmapbuf == MAP_FAILED) { in create_ring()
3282 u_char *base = &handlep->mmapbuf[i*req.tp_block_size]; in create_ring()
3312 if (handlep->mmapbuf) { in destroy_ring()
3314 (void)munmap(handlep->mmapbuf, handlep->mmapbuflen); in destroy_ring()
3315 handlep->mmapbuf = NULL; in destroy_ring()