* 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 */
| 2070 | * @return The virtual address corresponding to the file position |
| 2071 | */ |
| 2072 | void *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 |