MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / dfs_page_ref

Function dfs_page_ref

components/dfs/dfs_v2/src/dfs_pcache.c:1039–1042  ·  view source on GitHub ↗

* @brief Increment the reference count of a page * * This function atomically increases the reference count of the specified page. * It is used to track how many times the page is being referenced/used. * * @param[in,out] page Pointer to the page structure whose reference count will be incremented */

Source from the content-addressed store, hash-verified

1037 * @param[in,out] page Pointer to the page structure whose reference count will be incremented
1038 */
1039static void dfs_page_ref(struct dfs_page *page)
1040{
1041 rt_atomic_add(&(page->ref_count), 1);
1042}
1043
1044/**
1045 * @brief Release a page from page cache when reference count reaches zero

Callers 2

dfs_pcache_threadFunction · 0.85
dfs_page_searchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected