mmap
Non-existent physical address error with mmap
I\'m trying to mmap a file, and it seems to succeed but when I access it, I get an SIGBUS error. Code:[详细]
2023-04-13 03:25 分类:问答using dlsym for tracking mmap
I am trying to measure how much memory does some program mmaps. I am using the following code: void * mmap (void * addr, size_t len, int prot, int flags, int fildes, off_t off) {[详细]
2023-04-11 17:41 分类:问答segfault when using mmap
I\'m trying to use mmap fo开发者_开发问答r the first time to store a tree object with a lot of data in it. The tree class basically contains a pointer to the root of class Node, and each Node instance[详细]
2023-04-10 11:41 分类:问答Issues with mmap of Complex Types
I have an issue attempting to access shared memory using mmap for complex types. So I allocate my memory as so in my parent pr开发者_如何学编程ocess:[详细]
2023-04-09 18:34 分类:问答Is it possible to memory map a compressed file?
We have large files with zlib-compressed binary data that we would like to memory map. Is it even possible to memory map such a compressed binary file and access those by开发者_开发问答tes in an effe[详细]
2023-04-06 19:14 分类:问答C++ MMap a file to memory and then get a file descriptor to that memory
I saw this post: system call to map memory to a file descriptor (inverse mmap)? I would like a library that I have that wants a file descriptor in its interface to be able to be given a file descript[详细]
2023-04-04 20:33 分类:问答Setting a fmemopen ed file descriptor to be the standard input for a child process
I have an fmemopen file descriptor(pointing to a buffer in the parent) in Linux and I would like to be able to, in C, set this file descriptor as the standard input for a child process(for whom I do n[详细]
2023-04-02 11:43 分类:问答What is the difference between writing to a file and a mapped memory?
I have the following questions related to handling files and mapping them (mmap开发者_如何学Go):[详细]
2023-04-01 18:48 分类:问答Why people say mmap by MappedByteBuffer is faster?
I think mmap is not fast as using virtual memory, it still has harddisk I/O. But many people on Internet say it\'s fast, but no reason.[详细]
2023-03-31 10:30 分类:问答Mmap() an entire large file
I am trying to \"mmap\" a binary file (~ 8Gb) using the following code (test.c). #include <stdio.h>[详细]
2023-03-31 02:41 分类:问答