-
Notifications
You must be signed in to change notification settings - Fork 72
Implement sys_mincore
#160
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
Conversation
hexagonal-sun
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couple of things:
- According to the man page
1is used if the page is resident in RAM. At the moment you're returning0, AFAICS. - You say that we don't have paging so we always return
0. I think what you're saying is that we never swap out pages so we can consider pages always resident in RAM? That isn't strictly true; we do have demand paging. Therefore, VMAs may well be partially resident in RAM. This is true for both anonymous and file-backed VMAs.
|
Alright, I fixed the implementation and actually checked if pages were mapped or not. I actually didn't realize that we having demand paging. Also I've added a sanity test. |
b0f4fb1 to
ba48e97
Compare
hexagonal-sun
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Since we don't page, always returning
0is valid.