fd.cc File Reference
#include "squid.h"
#include "comm/Loops.h"
#include "Debug.h"
#include "fatal.h"
#include "fd.h"
#include "fde.h"
#include "globals.h"
#include "profiler/Profiler.h"
#include "SquidTime.h"
Include dependency graph for fd.cc:

Go to the source code of this file.

Macros

#define MSG_NOSIGNAL   0
 

Functions

int default_read_method (int, char *, int)
 
int default_write_method (int, const char *, int)
 
int msghdr_read_method (int, char *, int)
 
int msghdr_write_method (int, const char *, int)
 
static void fdUpdateBiggest (int fd, int)
 
void fd_close (int fd)
 
void fd_open (int fd, unsigned int type, const char *desc)
 
void fd_note (int fd, const char *s)
 
void fd_bytes (int fd, int len, unsigned int type)
 
void fdDumpOpen (void)
 
int fdNFree (void)
 
int fdUsageHigh (void)
 
void fdAdjustReserved (void)
 

Variables

const char * fdTypeStr []
 

Macro Definition Documentation

◆ MSG_NOSIGNAL

#define MSG_NOSIGNAL   0

Definition at line 25 of file fd.cc.

Referenced by msghdr_write_method().

Function Documentation

◆ default_read_method()

int default_read_method ( int  fd,
char *  buf,
int  len 
)

Definition at line 146 of file fd.cc.

References i, PROF_start, and PROF_stop.

Referenced by fd_open(), Ssl::Bio::read(), ConnStateData::splice(), and switchToTunnel().

◆ default_write_method()

int default_write_method ( int  fd,
const char *  buf,
int  len 
)

Definition at line 156 of file fd.cc.

References i, PROF_start, and PROF_stop.

Referenced by fd_open(), ConnStateData::splice(), switchToTunnel(), and Ssl::Bio::write().

◆ fd_bytes()

◆ fd_close()

◆ fd_note()

◆ fd_open()

◆ fdAdjustReserved()

void fdAdjustReserved ( void  )

Definition at line 320 of file fd.cc.

References DBG_CRITICAL, debugs, fatalf(), last, min(), Number_FD, RESERVED_FD, squid_curtime, and Squid_MaxFD.

Referenced by comm_open_uds(), and comm_openex().

◆ fdDumpOpen()

void fdDumpOpen ( void  )

◆ fdNFree()

int fdNFree ( void  )

◆ fdUpdateBiggest()

static void fdUpdateBiggest ( int  fd,
int  opening 
)
static

Definition at line 53 of file fd.cc.

References assert, Biggest_FD, fd_table, and Squid_MaxFD.

Referenced by fd_close(), and fd_open().

◆ fdUsageHigh()

int fdUsageHigh ( void  )

◆ msghdr_read_method()

int msghdr_read_method ( int  fd,
char *  buf,
int   
)

Definition at line 166 of file fd.cc.

References i, PROF_start, and PROF_stop.

Referenced by fd_open().

◆ msghdr_write_method()

int msghdr_write_method ( int  fd,
const char *  buf,
int  len 
)

Definition at line 175 of file fd.cc.

References i, len, MSG_NOSIGNAL, PROF_start, and PROF_stop.

Referenced by fd_open().

Variable Documentation

◆ fdTypeStr

const char* fdTypeStr[]
Initial value:
= {
"None",
"Log",
"File",
"Socket",
"Pipe",
"MsgHdr",
"Unknown"
}

Definition at line 40 of file fd.cc.

Referenced by comm_poll_tcp_incoming(), fde::dumpStats(), and examine_select().

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors