aboutsummaryrefslogtreecommitdiff
path: root/docs/kernel_network.puml
diff options
context:
space:
mode:
Diffstat (limited to 'docs/kernel_network.puml')
-rw-r--r--docs/kernel_network.puml41
1 files changed, 41 insertions, 0 deletions
diff --git a/docs/kernel_network.puml b/docs/kernel_network.puml
new file mode 100644
index 0000000..39c7f55
--- /dev/null
+++ b/docs/kernel_network.puml
@@ -0,0 +1,41 @@
+@startuml
+
+skinparam backgroundColor #FEFEFE
+
+box "Application" #0091BD
+participant "main()" as main
+end box
+
+box "Driver library" #00C1DE
+participant "Device" as ddev
+participant "Buffer" as dbuf
+participant "Network" as dnet
+participant "Inference" as dinf
+end box
+
+box "Kernel driver" #7D868C
+participant "Device" as kdev
+participant "Buffer" as kbuf
+participant "Network" as knet
+participant "Inference" as kinf
+end box
+
+activate main
+
+note over main
+ Create device
+ Allocate and fill network buffer
+end note
+
+main -> dnet++: Network(device, buffer)
+ dnet -> kdev++: ioctl(NETWORK_CREATE, buffer)
+ note over knet
+ Create network and return file descriptor
+ end note
+
+ kdev -> knet++: create(buffer)
+ return file descriptor
+ return file descriptor
+return
+
+@enduml