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

fix shm size type #243

Merged
merged 1 commit into from
Feb 12, 2023
Merged

fix shm size type #243

merged 1 commit into from
Feb 12, 2023

Conversation

tatref
Copy link
Contributor

@tatref tatref commented Feb 2, 2023

Seems like a made a mistake when I created this file.

Source shows unsigned long, so u32

https://elixir.bootlin.com/linux/latest/source/ipc/shm.c#L57
https://elixir.bootlin.com/linux/latest/source/ipc/shm.c#L1867

However, when creating a shared memory segment, it can be much bigger. In the create function, it is defined as a size_t, so u64

After testing, I can create a memory segment of 6 GB, the size field show 6425673728

@eminence eminence merged commit da17d8e into eminence:master Feb 12, 2023
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

2 participants