Line 27:
Line 27:
|-
|-
|
|
−
|
+
|open() fd = 2
−
open() fd = 2
|-
|-
| ioctl(fd=2, num=EVENTHOOK, evbuf=0×12345600)
| ioctl(fd=2, num=EVENTHOOK, evbuf=0×12345600)
Line 42:
Line 41:
|-
|-
| Read event code from 0×12345600
| Read event code from 0×12345600
−
ioctl(fd=2, num=EVENTHOOK, evbuf=0×12345600)
+
|
−
|
+
|-
+
| ioctl(fd=2, num=EVENTHOOK, evbuf=0×12345600)
+
|
|-
|-
| colspan="2" style="text-align: center;" | Time passes, software decides to shut down STM
| colspan="2" style="text-align: center;" | Time passes, software decides to shut down STM
|-
|-
| ioctl(fd=1, num=RELEASE)
| ioctl(fd=1, num=RELEASE)
−
Write 0 event code to 0×12345600
|
|
+
|-
+
| Write 0 event code to 0×12345600
+
|
+
|-
+
|
+
| ioctl(fd=2) result = 0
|-
|-
|
|
−
| ioctl(fd=2) result = 0<br>ioctl(fd=1) result = 0
+
| ioctl(fd=1) result = 0
|-
|-
| close(2)
| close(2)