Closed tatref closed 1 year ago
Seems like a made a mistake when I created this file.
Source shows unsigned long, so u32
unsigned long
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
size_t
u64
After testing, I can create a memory segment of 6 GB, the size field show 6425673728
6425673728
Seems like a made a mistake when I created this file.
Source shows
unsigned long
, sou32
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
, sou64
After testing, I can create a memory segment of 6 GB, the size field show
6425673728