|
Squid Web Cache master
|
Public Member Functions | |
| Mmapping (int fd, size_t length, int prot, int flags, off_t offset) | |
| ~Mmapping () | |
| void * | map () |
| calls mmap(2); returns usable buffer or nil on failure | |
| bool | unmap () |
| unmaps previously mapped buffer, if any | |
Private Attributes | |
| const int | fd |
| descriptor of the mmapped file | |
| const size_t | length |
| user-requested data length, needed for munmap | |
| const int | prot |
| mmap(2) "protection" flags | |
| const int | flags |
| other mmap(2) flags | |
| const off_t | offset |
| user-requested data offset | |
| off_t | delta |
| mapped buffer increment to hit user offset | |
| void * | buf |
| buffer returned by mmap, needed for munmap | |
Definition at line 36 of file MmappedFile.cc.
Definition at line 220 of file MmappedFile.cc.
| Mmapping::~Mmapping | ( | ) |
Definition at line 226 of file MmappedFile.cc.
| void * Mmapping::map | ( | ) |
| bool Mmapping::unmap | ( | ) |
Definition at line 253 of file MmappedFile.cc.
References buf, debugs, delta, error(), fd, length, and xstrerr().
Referenced by ~Mmapping(), and MmappedFile::read().
|
private |
Definition at line 53 of file MmappedFile.cc.
Referenced by ~Mmapping(), map(), and unmap().
|
private |
Definition at line 52 of file MmappedFile.cc.
|
private |
Definition at line 46 of file MmappedFile.cc.
|
private |
Definition at line 49 of file MmappedFile.cc.
Referenced by map().
|
private |
Definition at line 47 of file MmappedFile.cc.
|
private |
Definition at line 50 of file MmappedFile.cc.
Referenced by map().
|
private |
Definition at line 48 of file MmappedFile.cc.
Referenced by map().