mmap
extendable mremap on anonymously mmaped memory
I was believing mremap would have a realloc-like behavior until debugging things like the following lines of cod开发者_如何学Ce in C.[详细]
2023-03-29 23:52 分类:问答When does an O_SYNC write become visible in the pagecache (mmap'd file)?
I have a file mmap\'d read-only/shared, with multiple threads/processes reading the data concurrently. A single writer is allowed to modify the data at any time (using a mutex in a separate shared mem[详细]
2023-03-28 15:56 分类:问答Mistake, or valgrind/gcc bug?
When running valgrind on the following program the assertion fails: #include <unistd.h> #include <sys/mman.h>[详细]
2023-03-27 19:45 分类:问答MEM_SHARED, mmap, and hard links
Just wondering if the key to shared memory is the file name or the inode. I have a file called .last, which is just a hard link to a file named YYYYMMDDHHMMSS.[详细]
2023-03-27 17:27 分类:问答Why does fopen/fgets use both mmap and read system calls to access the data?
I have a small example program which simply fopens a file and uses fgets to read it. Using strace, I notice that the first call to fgets runs a mmap system call, and then read system calls are used to[详细]
2023-03-27 15:05 分类:问答mmap(): what happens if underlying file changes (shrinks)?
If you memory map a file using mmap(), but then the un开发者_如何学JAVAderlying file changes to a much smaller size. What happens if you access a memory offset that was shaved off from the file?IBM sa[详细]
2023-03-24 01:08 分类:问答using mmap in python
can somebody please explain how does 0 influence mmap in python in this case: mmap.mmap(0 , 256, \"some tag\")[详细]
2023-03-23 18:55 分类:问答Legacy code: mmap zero page: Operation not permitted - where should i start?
I\'ve to deal with old C- Sourcecode. After I managed to compile it, while running it I get the error message[详细]
2023-03-23 03:03 分类:问答mmap slower than getline?
I face the challenge of reading/writing files (in Gigs) line by line. Reading many forum entries and sites (including a bunch of SO\'s), mmap was suggested as the fastest option to read/write files.[详细]
2023-03-19 07:00 分类:问答Linux: create mmap()able virtual file (e.g. SPI memory)
I have a char device which enables access to an external SPI memory, and I\'d like to mmap() the external memory so that I can access it from a program as if开发者_StackOverflow it were normal memory.[详细]
2023-03-18 19:52 分类:问答
加载中,请稍侯......