Kristofer Jonsson | 0c79f89 | 2021-06-02 17:15:57 +0200 | [diff] [blame] | 1 | @startuml |
| 2 | |
| 3 | skinparam backgroundColor #FEFEFE |
| 4 | |
| 5 | box "Application" #0091BD |
| 6 | participant "main()" as main |
| 7 | end box |
| 8 | |
| 9 | box "Driver library" #00C1DE |
| 10 | participant "Device" as ddev |
| 11 | participant "Buffer" as dbuf |
| 12 | participant "Network" as dnet |
| 13 | participant "Inference" as dinf |
| 14 | end box |
| 15 | |
| 16 | box "Kernel driver" #7D868C |
| 17 | participant "Device" as kdev |
| 18 | participant "Buffer" as kbuf |
| 19 | participant "Network" as knet |
| 20 | participant "Inference" as kinf |
| 21 | end box |
| 22 | |
| 23 | activate main |
| 24 | |
| 25 | note over main |
| 26 | Create device |
| 27 | Allocate and fill network buffer |
| 28 | end note |
| 29 | |
| 30 | main -> 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 |
| 39 | return |
| 40 | |
| 41 | @enduml |