⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme

📁 fsmlabs的real time linux的内核
💻
字号:
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 + -