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

Add option for naming pages in Linux 5.17 #194

Merged
merged 1 commit into from
May 31, 2023
Merged

Conversation

WangHanChi
Copy link
Contributor

From Linux 5.17 onwards, it is now possible to name anonymous memory, similar to the Android system. Therefore, I have added a macro that allows you to choose whether or not to use this feature. For more information, you can refer to
https://kernelnewbies.org/Linux_5.17#Support_giving_names_to_anonymous_memory.

#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 17, 0)
/* Use this macro can allow for compatibility with older versions while
* introducing new functionality */
#define KERNEL_VERSION_5_17 1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
#define KERNEL_VERSION_5_17 1
#define KERNEL_VERSION_SEQ_5_17 1

From Linux 5.17 onwards, it is now possible to name anonymous
memory, similar to the Android system. Therefore, I have added a
macro that allows you to choose whether or not to use this feature.
For more information, you can refer to
https://kernelnewbies.org/Linux_5.17#Support_giving_names_to_anonymous_memory.
@struct
Copy link
Owner

struct commented May 31, 2023

Thanks for this!

@struct struct merged commit 2361a06 into struct:master May 31, 2023
6 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants