MCPcopy Create free account
hub / github.com/F-Stack/f-stack / tcp_log_free_queue

Function tcp_log_free_queue

freebsd/netinet/tcp_log_buf.c:2068–2088  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2066}
2067
2068static void
2069tcp_log_free_queue(struct tcp_log_dev_queue *param)
2070{
2071 struct tcp_log_dev_log_queue *entry;
2072
2073 KASSERT(param != NULL, ("%s: called with NULL param", __func__));
2074 if (param == NULL)
2075 return;
2076
2077 entry = (struct tcp_log_dev_log_queue *)param;
2078
2079 /* Free the entries. */
2080 tcp_log_free_entries(&entry->tldl_entries, &entry->tldl_count);
2081
2082 /* Free the buffer, if it is allocated. */
2083 if (entry->tldl_common.tldq_buf != NULL)
2084 free(entry->tldl_common.tldq_buf, M_TCPLOGDEV);
2085
2086 /* Free the queue entry. */
2087 free(entry, M_TCPLOGDEV);
2088}
2089
2090static struct tcp_log_common_header *
2091tcp_log_expandlogbuf(struct tcp_log_dev_queue *param)

Callers 2

tcp_log_dump_tp_logbufFunction · 0.85
tcp_log_dump_node_logbufFunction · 0.85

Calls 2

tcp_log_free_entriesFunction · 0.85
freeFunction · 0.50

Tested by

no test coverage detected