Home
last modified time | relevance | path

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

/freebsd/contrib/libpcap/
H A Dpcap-usb-linux.c127 u_char *mmapbuf; /* memory-mapped region pointer */ member
303 handlep->mmapbuf = mmap(0, handlep->mmapbuflen, PROT_READ, in usb_mmap()
305 if (handlep->mmapbuf == MAP_FAILED) { in usb_mmap()
843 bp = &handlep->mmapbuf[vec[i]]; in usb_read_linux_mmap()
956 if (handlep->mmapbuf != NULL) { in usb_cleanup_linux_mmap()
957 munmap(handlep->mmapbuf, handlep->mmapbuflen); in usb_cleanup_linux_mmap()
958 handlep->mmapbuf = NULL; in usb_cleanup_linux_mmap()
H A Dpcap-linux.c200 u_char *mmapbuf; /* memory-mapped region pointer */ member
3423 handlep->mmapbuf = mmap(0, handlep->mmapbuflen, in create_ring()
3425 if (handlep->mmapbuf == MAP_FAILED) { in create_ring()
3448 u_char *base = &handlep->mmapbuf[i*req.tp_block_size]; in create_ring()
3478 if (handlep->mmapbuf) { in destroy_ring()
3480 (void)munmap(handlep->mmapbuf, handlep->mmapbuflen); in destroy_ring()
3481 handlep->mmapbuf = NULL; in destroy_ring()