|
Re: Create proc fs to send the arguments to the Driver
|
08/29/2019 4:03 AM
post119841
|
Re: Create proc fs to send the arguments to the Driver
Hi Thomas,
there is no dedicated procfs, like a Linux Kernel is providing.
a) Every qnx process can overtake some area in the qnx name-space.
If you want to control your special driver only, your driver could generate a prefix in the name-space.
Lets say, your driver already uses the prefix "/dev/myDevice/IO" for normal work, you could additional attach "/dev/
myDevice/Debug" and connect the "IO_WRITE"-Entry.
So, for example you later simply type "echo debug=42 > /dev/myDevice/IO/Debug" to activate something in your driver.
b) Alternatively you could poll a file under "/dev/shmem" from time to time. This file could contain the debug-flags.
The simple RAM-Disk "/dev/shmem" is serviced by procnto and is available on every running QNX-system.
Regards
Michael
|
|
|