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

Function tcp_log_free_entries

freebsd/netinet/tcp_log_buf.c:1053–1064  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1051}
1052
1053static void
1054tcp_log_free_entries(struct tcp_log_stailq *head, int *count)
1055{
1056 struct tcp_log_mem *log_entry;
1057
1058 /* Free the entries. */
1059 while ((log_entry = STAILQ_FIRST(head)) != NULL) {
1060 STAILQ_REMOVE_HEAD(head, tlm_queue);
1061 tcp_log_entry_refcnt_rem(log_entry);
1062 tcp_log_free_log_common(log_entry, count);
1063 }
1064}
1065
1066/* Cleanup after removing a log entry. */
1067static inline void

Callers 4

tcp_log_expireFunction · 0.85
tcp_log_free_queueFunction · 0.85
tcp_log_expandlogbufFunction · 0.85
tcp_log_dumpbucketlogsFunction · 0.85

Calls 1

tcp_log_free_log_commonFunction · 0.85

Tested by

no test coverage detected