![](fd_8h__dep__incl.png)
Go to the source code of this file.
Enumerations | |
enum | IoDirection { IoDirection::Read, IoDirection::Write } |
distinguishes reading/importing I/O operations from their writing/exporting counterparts More... | |
Functions | |
void | fd_close (int fd) |
void | fd_open (int fd, unsigned int type, const char *) |
void | fd_note (int fd, const char *) |
void | fd_bytes (int fd, int len, IoDirection) |
void | fdDumpOpen (void) |
int | fdUsageHigh (void) |
void | fdAdjustReserved (void) |
int | default_read_method (int, char *, int) |
int | default_write_method (int, const char *, int) |
Enumeration Type Documentation
◆ IoDirection
|
strong |
Function Documentation
◆ default_read_method()
Definition at line 129 of file fd.cc.
Referenced by fd_open(), Ssl::Bio::read(), and fde::useDefaultIo().
◆ default_write_method()
Definition at line 135 of file fd.cc.
Referenced by fd_open(), fde::useDefaultIo(), and Ssl::Bio::write().
◆ fd_bytes()
void fd_bytes | ( | int | fd, |
int | len, | ||
IoDirection | |||
) |
Definition at line 226 of file fd.cc.
References F(), fd_table, Read, and Write.
Referenced by diskerRead(), diskerWriteAttempts(), diskHandleRead(), diskHandleWrite(), idnsRead(), idnsSendQuery(), logfile_mod_udp_write(), logfileWriteWrapper(), Ftp::Client::readControlReply(), Comm::ReadNow(), Client::sentRequestBody(), Ftp::Client::writeCommandCallback(), and HttpStateData::wroteLast().
◆ fd_close()
void fd_close | ( | int | fd | ) |
Definition at line 21 of file minimal.cc.
References assert, debugs, F(), FD_FILE, fd_table, fdUpdateBiggest(), Number_FD, and Comm::ResetSelect().
Referenced by comm_close_complete(), DiskThreadsDiskFile::doClose(), fd_open(), file_close(), CommIO::NotifyIOClose(), and DebugFile::reset().
◆ fd_note()
void fd_note | ( | int | fd, |
const char * | |||
) |
Definition at line 216 of file fd.cc.
References F(), FD_DESC_SZ, fd_table, and xstrncpy().
Referenced by Ftp::Server::AcceptCtrlConnection(), Ftp::Server::acceptDataConnection(), ConnStateData::afterClientRead(), ClientRequestContext::clientRedirectDone(), Ftp::Server::connectedForData(), CreateSession(), FwdState::dispatch(), Server::doClientRead(), fd_open(), httpAccept(), httpsAccept(), icpIncomingConnectionOpened(), icpOpenPorts(), DiskdIOStrategy::init(), ipc_thread_1(), IcmpSquid::Open(), Helper::Client::openSessions(), statefulhelper::openSessions(), ConnStateData::parseTlsHandshake(), ConnStateData::pinConnection(), PconnPool::push(), ConnStateData::readNextRequest(), unlinkdInit(), and Http::Tunneler::writeRequest().
◆ fd_open()
Definition at line 15 of file minimal.cc.
References assert, DBG_IMPORTANT, debugs, default_read_method(), default_write_method(), F(), fatalf(), fd_close(), FD_FILE, FD_LOG, FD_MSGHDR, fd_note(), FD_PIPE, FD_SOCKET, fd_table, fdUpdateBiggest(), msghdr_read_method(), msghdr_write_method(), and Number_FD.
Referenced by Comm::TcpAcceptor::acceptInto(), comm_init_opened(), comm_open_uds(), ConfigureDebugging(), file_open(), CommIO::Initialize(), ipc_thread_1(), ipcCreate(), DiskThreadsDiskFile::openDone(), DebugFile::reset(), and Comm::SelectLoopInit().
◆ fdAdjustReserved()
void fdAdjustReserved | ( | void | ) |
Definition at line 288 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 244 of file fd.cc.
References debugs, DebugStream(), F(), fd_table, Important, and Squid_MaxFD.
Referenced by SquidShutdown().
◆ fdUsageHigh()
int fdUsageHigh | ( | void | ) |
Definition at line 273 of file fd.cc.
References fdNFree(), Number_FD, and RESERVED_FD.
Referenced by clientReplyContext::buildReplyHeader(), PeerPoolMgr::openNewConnection(), and PconnPool::push().
Introduction
- About Squid
- Why Squid?
- Squid Developers
- How to Donate
- How to Help Out
- Getting Squid
- Squid Source Packages
- Squid Deployment Case-Studies
- Squid Software Foundation
Documentation
- Quick Setup
- Configuration:
- FAQ and Wiki
- Guide Books:
- Non-English
- More...
Support
- Security Advisories
- Bugzilla Database
- Mailing lists
- Contacting us
- Commercial services
- Project Sponsors
- Squid-based products