|
|
Subscribe / Log in / New account

fd <-> memory

fd <-> memory

Posted Jul 6, 2017 22:16 UTC (Thu) by Jandar (subscriber, #85683)
In reply to: Zero-copy networking by mikemol
Parent article: Zero-copy networking

You could open /dev/zero and mmap it MAP_PRIVATE. This wouldn't give you a fd corresponding to an arbitrary memory region but you could setup this memory in advance to create the content into it. Zero-copy with sendfile should be possible with this.


to post comments


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds