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

Function cache_bucket_swap

freebsd/vm/uma_core.c:868–878  ·  view source on GitHub ↗

* Swap two cache buckets. */

Source from the content-addressed store, hash-verified

866 * Swap two cache buckets.
867 */
868static inline void
869cache_bucket_swap(uma_cache_bucket_t b1, uma_cache_bucket_t b2)
870{
871 struct uma_cache_bucket b3;
872
873 CRITICAL_ASSERT(curthread);
874
875 cache_bucket_copy(&b3, b1);
876 cache_bucket_copy(b1, b2);
877 cache_bucket_copy(b2, &b3);
878}
879
880/*
881 * Attempt to fetch a bucket from a zone on behalf of the current cpu cache.

Callers 2

cache_allocFunction · 0.85
uma_zfree_argFunction · 0.85

Calls 1

cache_bucket_copyFunction · 0.85

Tested by

no test coverage detected