blob: 39c7f55cf8b4de7e0aa78ed22bdf5de7825d7bef [file] [log] [blame]
Kristofer Jonsson0c79f892021-06-02 17:15:57 +02001@startuml
2
3skinparam backgroundColor #FEFEFE
4
5box "Application" #0091BD
6participant "main()" as main
7end box
8
9box "Driver library" #00C1DE
10participant "Device" as ddev
11participant "Buffer" as dbuf
12participant "Network" as dnet
13participant "Inference" as dinf
14end box
15
16box "Kernel driver" #7D868C
17participant "Device" as kdev
18participant "Buffer" as kbuf
19participant "Network" as knet
20participant "Inference" as kinf
21end box
22
23activate main
24
25note over main
26 Create device
27 Allocate and fill network buffer
28end note
29
30main -> dnet++: Network(device, buffer)
31 dnet -> kdev++: ioctl(NETWORK_CREATE, buffer)
32 note over knet
33 Create network and return file descriptor
34 end note
35
36 kdev -> knet++: create(buffer)
37 return file descriptor
38 return file descriptor
39return
40
41@enduml