Skip to content

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.

2 participants