GDB (xrefs)
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
readahead_cache Struct Reference

Public Member Functions

void invalidate ()
 
void invalidate_fd (int fd)
 
int pread (int fd, gdb_byte *read_buf, size_t len, ULONGEST offset)
 

Public Attributes

int fd = -1
 
ULONGEST offset = 0
 
gdb_byte * buf = nullptr
 
size_t bufsize = 0
 
ULONGEST hit_count = 0
 
ULONGEST miss_count = 0
 

Detailed Description

Definition at line 158 of file remote.c.

Member Function Documentation

◆ invalidate()

void readahead_cache::invalidate ( )

Definition at line 12253 of file remote.c.

References fd.

Referenced by remote_target::open_1().

◆ invalidate_fd()

void readahead_cache::invalidate_fd ( int  fd)

◆ pread()

int readahead_cache::pread ( int  fd,
gdb_byte *  read_buf,
size_t  len,
ULONGEST  offset 
)

Definition at line 12437 of file remote.c.

References buf, bufsize, fd, and offset.

Referenced by remote_target::remote_hostio_pread().

Member Data Documentation

◆ buf

gdb_byte* readahead_cache::buf = nullptr

Definition at line 179 of file remote.c.

Referenced by pread(), and remote_target::remote_hostio_pread().

◆ bufsize

size_t readahead_cache::bufsize = 0

Definition at line 182 of file remote.c.

Referenced by pread(), and remote_target::remote_hostio_pread().

◆ fd

int readahead_cache::fd = -1

Definition at line 172 of file remote.c.

Referenced by invalidate(), invalidate_fd(), pread(), and remote_target::remote_hostio_pread().

◆ hit_count

ULONGEST readahead_cache::hit_count = 0

Definition at line 185 of file remote.c.

Referenced by remote_target::remote_hostio_pread().

◆ miss_count

ULONGEST readahead_cache::miss_count = 0

Definition at line 186 of file remote.c.

Referenced by remote_target::remote_hostio_pread().

◆ offset

ULONGEST readahead_cache::offset = 0

Definition at line 176 of file remote.c.

Referenced by pread(), and remote_target::remote_hostio_pread().


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