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

sys::memfd additional flags related to the hugetlb filesystem support. #2252

Merged
merged 1 commit into from
Dec 6, 2023

Conversation

devnexen
Copy link
Contributor

@devnexen devnexen commented Dec 5, 2023

No description provided.

Copy link
Member

@SteveLauC SteveLauC left a comment

Choose a reason for hiding this comment

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

It seems that these constants are also available on Android and FreeBSD, would you mind adding them for these 2 platforms?

@devnexen
Copy link
Contributor Author

devnexen commented Dec 6, 2023

Ok will be adding for android however, preferably not enabling MFD_HUGETLB for FreeBSD since it is not supported (yet) I added a comment.

src/sys/memfd.rs Outdated
/// See also the hugetlb filesystem in [`memfd_create(2)`].
///
/// [`memfd_create(2)`]: https://man7.org/linux/man-pages/man2/memfd_create.2.html
#[cfg(any(target_os = "linux", target_os = "android"))]
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
#[cfg(any(target_os = "linux", target_os = "android"))]
#[cfg(linux_android)]

Please use the alias instead

@SteveLauC SteveLauC added this pull request to the merge queue Dec 6, 2023
Merged via the queue into nix-rust:master with commit b763d73 Dec 6, 2023
34 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.

2 participants