fd.cc File Reference
#include "squid.h"
#include "comm/Loops.h"
#include "debug/Messages.h"
#include "debug/Stream.h"
#include "fatal.h"
#include "fd.h"
#include "fde.h"
#include "globals.h"
Include dependency graph for fd.cc:

Go to the source code of this file.


#define MSG_NOSIGNAL   0


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)


const char * fdTypeStr []

Macro Definition Documentation


#define MSG_NOSIGNAL   0

Definition at line 24 of file fd.cc.

Function Documentation

◆ default_read_method()

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

Definition at line 129 of file fd.cc.

Referenced by Ssl::Bio::read(), and fde::useDefaultIo().

◆ default_write_method()

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

Definition at line 135 of file fd.cc.

Referenced by fde::useDefaultIo(), and Ssl::Bio::write().

◆ fd_bytes()

◆ fd_close()

void fd_close ( int  fd)

Definition at line 81 of file fd.cc.

References assert, debugs, F(), FD_FILE, fd_table, fdUpdateBiggest(), Number_FD, and Comm::ResetSelect().

Referenced by fd_open().

◆ fd_note()

◆ fd_open()

void fd_open ( int  fd,
unsigned int  type,
const char *  desc 

Definition at line 156 of file fd.cc.

References assert, DBG_IMPORTANT, debugs, F(), fd_close(), FD_FILE, FD_LOG, FD_PIPE, FD_SOCKET, and fd_table.

◆ fdAdjustReserved()

void fdAdjustReserved ( void  )

Definition at line 286 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  )

Definition at line 242 of file fd.cc.

References debug_log, debugs, F(), fd_table, Important, and Squid_MaxFD.

Referenced by SquidShutdown().

◆ fdNFree()

int fdNFree ( void  )

◆ fdUpdateBiggest()

static void fdUpdateBiggest ( int  fd,
int  opening 

Definition at line 52 of file fd.cc.

References assert, Biggest_FD, fd_table, and Squid_MaxFD.

Referenced by fd_close().

◆ fdUsageHigh()

int fdUsageHigh ( void  )

◆ msghdr_read_method()

int msghdr_read_method ( int  fd,
char *  buf,

Definition at line 141 of file fd.cc.

◆ msghdr_write_method()

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

Definition at line 147 of file fd.cc.

References MSG_NOSIGNAL.

Variable Documentation

◆ fdTypeStr

const char* fdTypeStr[]
Initial value:
= {

Definition at line 39 of file fd.cc.

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






Web Site Translations