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

Function dfs_aspace_vaddr

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

* Get the virtual address corresponding to a file position in a virtual area. * * @param[in] varea The virtual area structure * @param[in] fpos The file position to convert * * @return The virtual address corresponding to the file position */

Source from the content-addressed store, hash-verified

2070 * @return The virtual address corresponding to the file position
2071 */
2072void *dfs_aspace_vaddr(struct rt_varea *varea, off_t fpos)
2073{
2074 return varea->start + fpos - varea->offset * ARCH_PAGE_SIZE;
2075}
2076
2077/**
2078 * @brief Read data from memory-mapped file space

Callers 1

dfs_page_unmapFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected