1

I am modifying and debugging the Linux Kernel about the schedule on multicore board. I need to check some information and I find the printk cost too much and the system can go wrong. So I try to send these information via sysfs. Then I can get this information from Android APP by using the "cat" command. However I did not find any tutorial to show how to send information to sysfs. How can I write information to sysfs from kernel?

Thanks in advance.

X.F
  • 43
  • 1
  • 4
  • Have you considered looking at how existing sysfs files are implemented? – that other guy Nov 01 '16 at 22:32
  • No. I know it is a RAM file system and the CPU information can be get from that and so I just think that may be a way to send more information. – X.F Nov 02 '16 at 03:53

0 Answers0