Libevent Code Doxygen document
Public Attributes | List of all members
evbuffer_file_segment Struct Reference
Collaboration diagram for evbuffer_file_segment:
Collaboration graph
[legend]

Public Attributes

void * lock
 
int refcnt
 
unsigned flags
 
unsigned can_sendfile: 1
 
unsigned is_mapping: 1
 
int fd
 
void * mapping
 
char * contents
 
ev_off_t file_offset
 
ev_off_t mmap_offset
 
ev_off_t length
 
evbuffer_file_segment_cleanup_cb cleanup_cb
 
void * cleanup_cb_arg
 

Member Data Documentation

◆ can_sendfile

unsigned evbuffer_file_segment::can_sendfile

What kind of file segment is this?

◆ cleanup_cb

evbuffer_file_segment_cleanup_cb evbuffer_file_segment::cleanup_cb

Cleanup callback function

◆ cleanup_cb_arg

void* evbuffer_file_segment::cleanup_cb_arg

Argument to be pass to cleanup callback function

◆ contents

char* evbuffer_file_segment::contents

If we're using mmap or IO, this is the content of the file segment.

◆ fd

int evbuffer_file_segment::fd

The fd that we read the data from.

◆ file_offset

ev_off_t evbuffer_file_segment::file_offset

Position of this segment within the file.

◆ flags

unsigned evbuffer_file_segment::flags

combination of EVBUF_FS_* flags

◆ length

ev_off_t evbuffer_file_segment::length

The length of this segment.

◆ lock

void* evbuffer_file_segment::lock

lock prevent concurrent access to refcnt

◆ mapping

void* evbuffer_file_segment::mapping

If we're using mmap, this is the raw mapped memory.

◆ mmap_offset

ev_off_t evbuffer_file_segment::mmap_offset

If we're using mmap, this is the offset within 'mapping' where this data segment begins.

◆ refcnt

int evbuffer_file_segment::refcnt

Reference count for this file segment


The documentation for this struct was generated from the following file: