Hi Martin, > Despite what the header says, the sysv implementation doesn't call mmap(). I realize the documentation comments of all the unix circbuffers are just copypasta... > Which I say with a 80% confidence, because that's as far as I'll go with > the circbuff stuff. I know that "this source code reeks of quicksand" feeling...
We also have mmap()ing implementations, I guess: vmcircbuf_mmap_shm_open and vmcircbuf_mmap_tmpfile; of which only the second doesn't use shared memory, which is the last one in the preference list, but is the one that I'd actually use. Also, in that one we get a file handler to a temporary file, unlink that directly after, and just use that handler to be able to ftruncate/mmap memory. which we could likely also do by just mmap(..., size, ... ,MAP_ANONYMOUS, -1, So I'm getting more and more confused[1]. Greetings, Marcus [1] that doesn't happen very often. I have a fairly high level of base confusion... _______________________________________________ Discuss-gnuradio mailing list [email protected] https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
