MCPcopy Create free account
hub / github.com/apache/trafficserver / alloc

Method alloc

src/iocore/net/P_UnixPollDescriptor.h:108–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106#endif
107
108 Pollfd *
109 alloc()
110 {
111#if TS_USE_EPOLL
112 // XXX : We need restrict max size based on definition.
113 if (nfds >= POLL_DESCRIPTOR_SIZE) {
114 nfds = 0;
115 }
116 return &pfd[nfds++];
117#else
118 return nullptr;
119#endif
120 }
121};

Callers 15

new_UDPPacketMethod · 0.45
build_iovec_block_chainFunction · 0.45
setupPollDescriptorMethod · 0.45
recvfrom_reMethod · 0.45
UnixUDPNet.ccFile · 0.45
_ssl_acceptMethod · 0.45
_handle_write_readyMethod · 0.45
allocate_vcMethod · 0.45
createMethod · 0.45
allocate_vcMethod · 0.45
_recv_packetMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected