Files
kernel_drivers_examples/debug/platform_driver_test
2018-12-01 16:54:29 +08:00
..
2017-03-09 15:52:56 +00:00
2018-11-16 11:16:09 +08:00
2018-12-01 16:01:59 +08:00
2018-11-16 11:16:09 +08:00
2017-09-08 19:21:04 +08:00
2018-12-01 16:54:29 +08:00
2018-12-01 16:01:59 +08:00
2016-11-02 11:38:51 +00:00
2016-11-02 11:38:51 +00:00
2016-11-02 11:38:51 +00:00

PlatformDriver

把dtsi文件包含到所使用的dts里

#include "test_pf.dtsi"

在驱动中如何使用下图中的VCC_TP,详见代码

VCC_TP

show_store_pf.c

device attr show and store

usage

把dtsi文件包含到所使用的dts里

#include "show_store_pf.dtsi"

debug

输入3个值并查看

echo 1 3 4 > /sys/devices/my_test_node.23/BBBBB_debug
cat /sys/devices/my_test_node.23/BBBBB_debug

SpinLock and Mutex

locks in linux kernel