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

Function IncrementalCleanup

freebsd/netinet/libalias/alias_db.c:821–835  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

819}
820
821static void
822IncrementalCleanup(struct libalias *la)
823{
824 struct alias_link *lnk, *lnk_tmp;
825
826 LIBALIAS_LOCK_ASSERT(la);
827 LIST_FOREACH_SAFE(lnk, &la->linkTableOut[la->cleanupIndex++],
828 list_out, lnk_tmp) {
829 if (la->timeStamp - lnk->timestamp > lnk->expire_time)
830 DeleteLink(lnk);
831 }
832
833 if (la->cleanupIndex == LINK_TABLE_OUT_SIZE)
834 la->cleanupIndex = 0;
835}
836
837static void
838DeleteLink(struct alias_link *lnk)

Callers 1

HouseKeepingFunction · 0.85

Calls 1

DeleteLinkFunction · 0.85

Tested by

no test coverage detected