Top "Mmap" questions

mmap is a POSIX-compliant Unix system call that maps files or devices into memory.

When should I use mmap for file access?

POSIX environments provide at least two ways of accessing files. There's the standard system calls open(), read(), write(), and friends, …

c file-io posix mmap
mmap() vs. reading blocks

I'm working on a program that will be processing files that could potentially be 100GB or more in size. The …

c++ file-io fstream mmap
Setting up Laravel on a Mac php artisan migrate error: No such file or directory

Pulled a perfectly working laravel project from a git into a mac running MAMP. Project ran perfectly on a linux …

php mysql laravel mmap
Linux shared memory: shmget() vs mmap()?

In this thread the OP is suggested to use mmap() instead of shmget() to get shared memory in Linux. I …

c linux posix shared-memory mmap
use mmap in C to write into memory.

I want to use mmap() to create a file containing some integers. I want to write to this file by …

c mmap
Mmap() an entire large file

I am trying to "mmap" a binary file (~ 8Gb) using the following code (test.c). #include <stdio.h> #…

c mmap
malloc vs mmap in C

I built two programs, one using malloc and other one using mmap. The execution time using mmap is much less …

c malloc mmap
How to access(if possible) kernel space from user space?

How exactly is user memory and kernels memory differentiated inside the Linux kernel(in terms of giving security to kernel …

linux memory-management linux-kernel mmap
How to access mmaped /dev/mem without crashing the Linux kernel?

I have a simple program that tries to access the physical memory in user space, where the kernel stores the 1…

c linux linux-kernel mmap
Shared Memory or mmap - Linux C/C++ IPC

The context is Inter-Process-Communication where one process("Server") has to send fixed-size structs to many listening processes("Clients") running on …

c++ c ipc shared-memory mmap