By going through the manual pages of shmget(), I understand that shmget() invocation allocates # of pages in memory, which can be shared across processes.
Is it going to create kernel memory pages, which are mapped to the process's local address space? Or is the same process memory page reserved for this segment and the same will be shared for other attached processes as well?
My assumption:
Is this correct?
The idea is more or less correct, except the wording "kernel memory page". The memory that is reserved/allocated in the memory-management is not specially made for the kernel. It is just "memory page", not mapped into the process memory yet.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With