Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could hurd use some mach port chicanery and vm_map? #672

Open
workingjubilee opened this issue Sep 15, 2024 · 1 comment
Open

Could hurd use some mach port chicanery and vm_map? #672

workingjubilee opened this issue Sep 15, 2024 · 1 comment
Labels

Comments

@workingjubilee
Copy link
Member

My understanding is that currently the /proc/self/maps implementation on Hurd exposes memory objects via their relevant mach ports as the "path", like [mem_obj={port_num}]. This seems like it might provide us with enough information that we can "simply" use the ultra-verbose vm_map (...with some wrapper code, obviously)... to map in the relevant segments of the relevant files.

I think emulating specifics of the /proc/self/maps implementation Linux has on Hurd may have made sense at one point but is ultimately a losing battle if one actually wants to make a different OS. See e.g. #671 which the Linux implementation may start to use soon enough.

cc @sthibaul

@sthibaul
Copy link
Contributor

vm_region can be used to query information directly from the kernel, yes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants