?? readme
字號:
Some simple examples using the proc filesystem to access rt-resourcessimple_proc.o:==============set up a /proc/hrtime file that returns the value of gethrtime when you callcat /proc/hrtimeproc_start_stop.o:==================this is a sligtly modified hello.o that will report its runntime status in /proc/thread_status - and allow modifying the running variable via the /proc entry.rtl11:~ # insmod proc_start_stop.ortl11:~ # cat /proc/thread_statusThread State:1rtl11:~ # echo 0 > /proc/thread_statusrtl11:~ # cat /proc/thread_statusThread State:0dmesg should show you that the rt-thread has terminated.sysctl.o:=========example of using the sysctl functions to build a proc interface below /proc/sys/ the files are located in /proc/sys/dev/simpleinfo: contains some string to be printed - could print any kernel variabledebug: read/write access to an int to turn on/off debuging or thread or...rtl11:~ # insmod sysctl.ortl11:~ # cat /proc/sys/dev/simple/infoSome infos via sysctlrtl11:~ # cat /proc/sys/dev/simple/debug0rtl11:~ # echo 2 > /proc/sys/dev/simple/debugrtl11:~ # cat /proc/sys/dev/simple/debug1sysctl_start_stop.o:====================same as proc_start_stop.o just using sysctl interfacertl11:~ # insmod sysctl_start_stop.ortl11:~ # cat /proc/sys/dev/simple/infoRT-thread done with loop 10rtl11:~ # cat /proc/sys/dev/simple/status1rtl11:~ # echo 0 > /proc/sys/dev/simple/statusrtl11:~ # dmesgelapsed_time = 60500028544elapsed_time = 61000028768elapsed_time = 61500028960Terminating thread - setting status to 0elapsed_time = 62000029568rtl11:~ # cat /proc/sys/dev/simple/infoRT-thread done with loop 48
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -