* Calculate file position from virtual address. * * @param[in] varea The virtual memory area * @param[in] vaddr The virtual address to convert * * @return The calculated file position offset */
| 2057 | * @return The calculated file position offset |
| 2058 | */ |
| 2059 | off_t dfs_aspace_fpos(struct rt_varea *varea, void *vaddr) |
| 2060 | { |
| 2061 | return (off_t)(intptr_t)vaddr - (off_t)(intptr_t)varea->start + varea->offset * ARCH_PAGE_SIZE; |
| 2062 | } |
| 2063 | |
| 2064 | /** |
| 2065 | * Get the virtual address corresponding to a file position in a virtual area. |
no outgoing calls
no test coverage detected