forked from arvidn/libtorrent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwrite_disk_buffers.diagram
15 lines (14 loc) · 1.12 KB
/
write_disk_buffers.diagram
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
"decrypt in place" "move buffer ref."
+------------------+ "(no copy)" +--------------+ "(no copy)" +--------------+
| "receive buffer" +--=------------>| "plain text" +--=------------->| "disk cache" |
+------------------+ | "buffer" | +------+-------+
^ +--------------+ |
| "read() on socket" "write() to file" |
| "(copy)" "(copy)" |
---=----|---------------------------------=---------------------------------|--=----
| "kernel space" |
| v
+-------+---------+ +---------------------+
| "socket kernel" | | "kernel page cache" |
| "buffer" | | |
+-----------------+ +---------------------+