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

/freebsd-9.3-release/contrib/libpcap/
H A Dpcap-usb-linux.c212 handle->md.mmapbuf = mmap(0, handle->md.mmapbuflen, PROT_READ,
214 return handle->md.mmapbuf != MAP_FAILED;
869 hdr = (pcap_usb_header*) &handle->md.mmapbuf[vec[i]];
908 if (handle->md.mmapbuf != NULL) {
909 munmap(handle->md.mmapbuf, handle->md.mmapbuflen);
910 handle->md.mmapbuf = NULL;
H A Dpcap-int.h145 u_char *mmapbuf; /* memory-mapped region pointer */ member in struct:pcap_md
H A Dpcap-linux.c3550 handle->md.mmapbuf = mmap(0, handle->md.mmapbuflen,
3552 if (handle->md.mmapbuf == MAP_FAILED) {
3578 void *base = &handle->md.mmapbuf[i*req.tp_block_size];
3601 if (handle->md.mmapbuf) {
3603 munmap(handle->md.mmapbuf, handle->md.mmapbuflen);
3604 handle->md.mmapbuf = NULL;

Completed in 63 milliseconds