Skip to content

Commit

Permalink
Improve diagrams in IO, ports chapter
Browse files Browse the repository at this point in the history
- Port communication diagram
- Entities on Erlang Node diagram
  • Loading branch information
hirotnk authored and happi committed Apr 22, 2020
1 parent 639b0f8 commit 6866e8d
Showing 1 changed file with 19 additions and 21 deletions.
40 changes: 19 additions & 21 deletions chapters/io.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -41,19 +41,19 @@ Erlang node.
[ditaa]
----
Erlang Node
+-------------------+
| __ |
| / \ owner __ _______
| \__/ < - -- -> / \ <----> / /
| P1 \__/ /______/
| 7 |Port1 file
| / |
| / |
| __ / |
| / \ |
| \__/ |
| P2 |
+-------------------+
+-------------------------+
| +------+ Owner |
| |{o} | +------+ +-------+
| |P1 |<------->| |<---->|{d} |
| +------+ |Port1 | |File |
| +------+ +-------+
| ^ |
| | |
| +------+ | |
| |{o} | | |
| |P2 +-----------+ |
| +------+ |
+-------------------------+
----
Expand Down Expand Up @@ -122,15 +122,13 @@ driver like: `multi_drv` and `sig_drv`.
----
+-----------------------------------------------------------------------------------------------------+
| Entities on an Erlang Node |
|--------------------------------------------------+--------------------------------------------------|
+--------------------------------------------------+--------------------------------------------------+
| Processes | Ports |
|--------------------------------------------------+---------++------++-------------------------------|
| | FD || OS || Drivers |
|--------------------------------------------------+---------++------++----------+++-------+++--------|
| | (Heart) || (ls) || tcp_inet ||| efile ||| ... |
+--------------------------------------------------+---------++------++----------+++-------+++--------+
+--------------------------------------------------+---------+-------+--------------------------------+
| | FD | OS | Drivers |
+--------------------------------------------------+---------+-------+-----------+++-------+++--------+
| | (Heart) | (ls) | tcp_inet ||| efile ||| ... |
+--------------------------------------------------+---------+-------+-----------+++-------+++--------+
----


Expand Down

0 comments on commit 6866e8d

Please sign in to comment.