Refactor Path and FD Conversion Logic into Reusable Helper Functions #77
Labels
good first issue
Good for newcomers
RawPOSIX
RawPOSIX related issue
Refactor
File structure refactor specific
While expanding
readlink
/readlinkat
, I noticed that we often repeat similar conversion logic in multiple places within fs_calls and net_calls. This includes conversions between user-view paths and host kernel paths, as well as between virtual file descriptors and kernel file descriptors. Simplifying this process with reusable helper functions could make the codebase cleaner and easier to maintain.Currently, the conversion logic is scattered and duplicated across various parts of fs_calls and net_calls. By consolidating this logic into well-designed helper functions, we can reduce redundancy, improve code clarity, and streamline future development. Additionally, this task provides a great entry point for new contributors to understand the project structure.
The text was updated successfully, but these errors were encountered: