On 12/10/22 08:14, Andy Pugh wrote:


On 10 Dec 2022, at 14:49, Dewey Garrett <dgarr...@panix.com> wrote:

nada -- this file is intree but not used

Interesting. Perhaps we can just delete it.

As Dewey reported later, procfs_macros.h is used in the RTAI backend of RTAPI, and deleting it breaks the RTAI build unless we turn off our /proc code at the same time.

I'm testing 2.8 on Wheezy with the 3.4-9-rtai-686-pae kernel from our package archive.

There are a bunch of things in /proc/rtapi that seem useful, that use procfs_macros.h. Unfortunately reading from any of them produces garbage. Writing to /proc/rtapi/debug works fine and does the expected thing (rtapi messages start showing up in the kernel log).

This is representative:

~~~
$ cat /proc/rtapi/status

ssage level = 5
975 nSec
���� ����
~~~

It seems like `seq_file` may be a better way for us to supply the contents of our files in /proc? It's part of the mainline kernel.


--
Sebastian Kuzminsky



_______________________________________________
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to