“ycao” <firstname.lastname@example.org> wrote in message
Thank you, mario!
You are welcome:
I also have many questions!
That’s what this newsgroup is for
A driver under QNX is just like any other program. Check out
mmap_* (), in*() out8() and ThreadCtrl()
I search these functions from online help,but i didn’t find them except
Unclick the “match whole works” in the help viewer and type mmap_.
Also look at shm_open.
Even the linux has the function
It’s all there but under different name, in8() , in8s(), in16(), in16s() …
2.What is the diffrence beteween the debugging a QNX driver and an
ordinary QNX programm?
I learn that in linux a drive can be written in “user space” or in "
space".Is Qnx the same?
No it’s not. You got to let go of some of Linux concept
And if you could write a drive in a “kernel space” ,how will you debug it
You can’t, there is no such thing a kernel space. A “driver” is just like
any other driver, aside from being required to be launch by user root, if
it has to access hardware directly.